How to Use usercontrol developed by. Net in VB6

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.