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.