Hey,
Can I use a user control created in VB.NET in VB6?
Thanks,
Printable View
Hey,
Can I use a user control created in VB.NET in VB6?
Thanks,
Yes, but the control must be created as an ActiveX component, this article will guide you through the process, it's actually pretty simple.
Write an ActiveX control in .NET
Actually after further research, I have discovered that this is not possible. I worked with my own version and delved deeper than that article covers and could not get it to work.
Upon further research I bumped into this article:
DOTNET Archives
Sorry for that...
You can check the REgister for Com Interop checkbox under build options in the properties of the project.
However, that only creates a .tlb file that can be referenced in vb 6.
I want to be able to drop the control onto a form like I can in vb.net.
Anyone?
Thanks,
As far as I know , .NET Controls and wrapped .NET Controls can be hosted only on Windows Forms inherited from System.Windows.Forms namespace (on .NET forms) .
It is not possible at all, the last article I sent explains that Microsoft made the decision after beta2 not to support this functionality. Someone out there may have written a C++ library that will support what you are looking for, but it's not possible using just a .NET control and vb 6.