HighTechTalks DotNet Forums  

RE: Register for COM Interop

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss RE: Register for COM Interop in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Uday Takbhate
 
Posts: n/a

Default RE: Register for COM Interop - 11-14-2005 , 03:40 AM






You probably want to strong name the assembly.

--
Uday Takbhate
MCP

"va_acharya" wrote:

Quote:
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
calling it from VB6.

In the first example I can create the control and it displays in my VB6
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 this
stage. I want the VB.NET control to appear on the VB6 form and to be
able to set it's public properties.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.