10.3. Using ActiveX controls

ActiveX controls are COM components. Such components support interfaces as well as properties, events, and methods. All this information is stored in the type library that is part of the ActiveX control, or contained in a separate .TLB file. This makes ActiveX controls very good candidates to be used within Windows forms. But Windows forms can host only Windows forms controls that are derived from the System.Windows.Forms.Control class. The ActiveX control importer utility (Aximp.exe) which comes with the Microsoft .NET framework SDK is the tool that converts type definitions in a COM type library for an ActiveX control into a Windows forms control. To do this, the ActiveX control importer generates a wrapper control ...

Get A Programmer's Guide to .NET 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.