What does the Upgrade Wizard create when it encounters ActiveX components in a Visual Basic 6.0 application?
The upgrade wizard generates two types of wrappers around each component: • A runtime callable wrapper (RCW): The .NET Framework’s Type Library Importer (Tlbimp.exe) creates a RCW for the ActiveX component and all dependent assemblies. • A Windows Forms wrapper (WFW): A WFW “merges” the ActiveX component’s native properties, methods, and events with those of System.Windows.Forms.AxHost. This is a class that inherits from System.Windows.Forms.Control and exposes ActiveX controls to the .NET Framework as fully functional Windows Forms controls. The upgrade wizard adds these wrappers to the project as DLLs, migrates references to the ActiveX component and its properties, methods, and events, and adds any design-time initializations of the component’s properties to the InitializeComponent method.
Related Questions
- Why does my installer (built with the Visual Basic Project Wizard) incorrectly register one of my ActiveX components?
- What does the Upgrade Wizard create when it encounters ActiveX components in a Visual Basic 6.0 application?
- What new libraries and main components are supported by the Visual Basic Upgrade Wizard 2005?