问题
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