Importing ActiveX Controls into .NET

You can use your favorite ActiveX controls in .NET. The aximp.exe tool creates a wrapper around an ActiveX control that exposes the types of the ActiveX controls as members of a control that inherits from System.Windows.Forms.Control. The wrapper manages interactions between the client application and the wrapped ActiveX control. You can add an ActiveX control (.ocx) to the Toolbox from the Tools|Custom Toolbox menu. In the Custom Toolbox dialog, select the COM Components tab (which is selected by default), and check the ActiveX controls you want to import. The aximp.exe utility will run, creating a wrapper for the control and adding a reference to the wrapper control in the References section.

UsesActiveXControl.sln ...

Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.