Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2007

Tip: Looking for answers? Try searching our database.

.Net COM to another machine

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
raju - 20 Jun 2007 12:39 GMT
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.
Norman Yuan - 20 Jun 2007 15:45 GMT
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.

> Hai,
>
[quoted text clipped - 15 lines]
> Regards,
> Raj.
Mattias Sjögren - 20 Jun 2007 23:14 GMT
>    Bec., the methods and properties are not available to use.

See if this helps

http://www.dotnetinterop.com/faq/?q=ClassInterface

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.