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 / Interop / November 2005

Tip: Looking for answers? Try searching our database.

Register for COM Interop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
va_acharya - 12 Nov 2005 12:29 GMT
I have created a very simple .NET control with one method and have se
the 'Register for COM Interop' build option. I am having problem
calling it from VB6.

In the first example I can create the control and it displays in my VB
project yet I can't set the public property of .net component

Example 1
Dim aVar As Control

Set aVar = Controls.Add("SimpleClassLibrary.simpleControl", "test")
aVar.Visible = True
aVar.sName = "test"

SimpleControl is the .NET control.
In the second example I can create the control and call it's methods
but it does not appear on the VB6 form.

Example 2
dim mSimple As SimpleClassLibrary.simpleControl
Set mSimple = CreateObject("SimpleClassLibrary.simpleControl")
aString = mSimple.getString

Can anybody tell me what I am doing wrong, it's driving me mad at thi
stage. I want the VB.NET control to appear on the VB6 form and to b
able to set it's public properties

--
va_achary
Uday Takbhate - 14 Nov 2005 08:40 GMT
You probably want to strong name the assembly.

Signature

Uday Takbhate
MCP

> I have created a very simple .NET control with one method and have set
> the 'Register for COM Interop' build option. I am having problems
[quoted text clipped - 22 lines]
> stage. I want the VB.NET control to appear on the VB6 form and to be
> able to set it's public properties.

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.