Search online for information about how to use C # To develop ActiveX ControlsArticleIt basically seems to be an article in the cited blog Park. But that article is used in IE. However, I have tried it. If it cannot be referenced in VB6, the system prompts that it cannot be registered as an ActiveX control.
Later, we found that Microsoft has provided a toolkit "Microsoft InterOP forms Toolkit 2.0" to conveniently implement this function.
After the installation is complete, when you create a VB. NET project, you can see that there is an additional"VB6 InterOP usercontrol". (The C # template can be downloaded here)
Go to the newly created project and you will find that all required files have been added to it. You only need to do the control in the same way as before.
After compilation and generation, create a VB6 project and reference the control. In the pop-up window, you can see the usercontrol you just wrote and directly reference it.
No additional operations are required. Is it very easy! For more functions, see the help and examples.