.Net COM to another machine

R

raju

Hai,

I created one COM class from vb.net application.

After creating xxx.tlb file in another machine, I tried to access
that com methods and properties in vb application.

I can add reference in my vb application and created object for
that class. But I can't use methods and properties.

Bec., the methods and properties are not available to use.

What we have to do, to use our .net com to vb or any other
application.

Thanking you

Regards,
Raj.
 
N

Norman Yuan

What do you mean "the methods and properties are not available".

If you mean the call to property/method

myClass.Prop1
or
myClass.Method1()

causes error, then it is most likely, the COM wrapper of .NET class is not
corrected registered or installed.

If you mean when you writing code in VB/VBA, the intellisence prompt does
not show the class' properties/methods, then, it is normal and by design.
That is, the methods and properties ARE available to use, but NOT available
to intellisence. If you want the the .NET COM class to show intellisence
prompt as regular COM object class, you need to do extra work. Search MS KB
article to this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top