
Creating Windows Forms • Chapter 7 339
All is not lost if you created ActiveX controls in previous versions of Visual
Basic.You can use the ActiveX Control Importer to convert the type definitions
found within the COM type library for an ActiveX Control into a Windows
Forms Control.
In order to achieve hosting, there is a base class System.WinForms.AxHost that
derives from System.WinForms.RichControl.This control appears as a Windows
Forms control to your Windows Form and an ActiveX Control Container to your
ActiveX control.To host the ActiveX Control, use the Windows Forms ActiveX
Control Importer to create a wrapper control that derives from System.WinFor ...