tags:

views:

83

answers:

3

Hi,

I have a user control in vb.net application.

and i have a form in vb 6.

so in my vb.net applciation to this user control i need to mention the vb 6 form as its parent.

Means when i run a vb6 application i should see this user control as a part of that form.

Ahy help appreciated.

A: 

You can try saving it as a dom object in .net After this, you can open it in vb6 in the menu components.

I've done it with guid class of .net but i don´t know what you and to do, but i think you should try it.

Paulo
A: 

It is actually fairly easy to add some plumbing to a VB.NET User control to expose it via COM as an ActiveX control that can be used by VB6 and other COM clients.

Here is an article describing how to do that:
"Writing an ActiveX Control in VB.NET"

JohnFx
+1  A: 

Take a look at the COM interop Toolkit. It allows you to easily create com-visible .NET usercontrols, which can be used in VB6 for instance.

Frederik Gheysels