Creating ActiveX control(OCX) in VB .net 2010

混江龙づ霸主 提交于 2019-12-07 16:02:09

问题


I would like to create an activeX control(OCX) in VB .net 2010 is it possible? I having a hard time determining how to make it because I only get a .dll file rather than a .ocx which can be seen in vb6. I hope you can answer my question.


回答1:


Are you asking how to create an "ActiveX" control specifically or are you asking how to create controls that can be used by other CLR based applications?

To create an ActiveX control, see this link which walks you through the steps to do this: Creating an MFC ActiveX Control

To create standard controls, you use a dll (class library) and can add as many controls to it as you like. You don't need a dll for each control, although you can.



来源:https://stackoverflow.com/questions/25563436/creating-activex-controlocx-in-vb-net-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!