You can't. With a lot of work, you can just about expose a windows forms control as an ActiveX that can be hosted in the ActiveX test container, but you won't get one that will run in VB6.
The ActiveX test container is a tool that comes with VS6. I don't know if windows forms controls exposed as ActiveX controls can be hosted in a webpage or not.
No, if .NET can do ActiveX controls, then why I still cater for VS6 staff? I just want to use VB.NET to do ActiveX control then embed it in ASP.NET webform.
.NET _can't_ do ActiveX controls. With a lot of work and nasty hacks you might just get a windows forms control you wrote to be exposed as a limited ActiveX control.
As far as I understand, MS gave up on the idea of supporting this because of problems interacting with .NET types from VB6 code. You just wouldn't be able to interact with the control properly.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.