开发者

Loading a Vb.net control inside a VB 6 form

开发者 https://www.devze.com 2022-12-18 05:56 出处:网络
I have a user control in vb.net application. a开发者_JAVA技巧nd 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.

I have a user control in vb.net application.

a开发者_JAVA技巧nd 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.


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.


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.


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"

0

精彩评论

暂无评论...
验证码 换一张
取 消