BUG: The ActiveX control that binds to the ImageList ActiveX control may not display the images that are in the upgraded ImageList control after you upgrade a Visual Basic 6.0 project in Visual Studio 2005 (919483)
The information in this article applies to:
- Microsoft Visual Studio 2005 Team System Architect Edition
- Microsoft Visual Studio 2005 Team System Developer Edition
- Microsoft Visual Studio 2005 Team System Test Edition
- Microsoft Visual Studio 2005 Team System Team Foundation:
- Microsoft Visual Studio 2005 Standard Edition
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio 2005 Express Edition
SYMPTOMSConsider the following scenario. A Microsoft Visual Basic 6.0 project contains a form. The form contains an ImageList ActiveX control. Additionally, the form contains an ActiveX control that binds to the ImageList ActiveX control. For example, the form contains a TabStrip ActiveX control that binds to the ImageList ActiveX control. You upgrade the Visual Basic 6.0 project by using the Visual Basic Upgrade Wizard in Microsoft Visual Studio 2005. In this scenario, the ActiveX control that binds to the ImageList ActiveX control may not display the images that are in the upgraded ImageList control.CAUSEThis problem occurs because the ActiveX control that binds to the ImageList ActiveX control is not upgraded to an equivalent managed Microsoft Windows Forms control. However, the ImageList ActiveX control is upgraded to an equivalent managed Windows Forms control. Therefore, the unmanaged ActiveX control cannot locate the upgraded ImageList control.WORKAROUNDTo work around this problem, use one of the following methods. Use the method that fits your situation the best. Method 1: Add an ImageList ActiveX control to the Windows FormAdd an ImageList ActiveX control to the Windows Form that is created by the Visual Basic Upgrade Wizard. Then, add images to the ImageList ActiveX control, and bind other ActiveX controls to the ImageList ActiveX control. To add an ImageList ActiveX control to the Windows Form, follow these steps: - Start Visual Studio 2005.
- On the File menu, point to Open, and then click Project/Solution.
- Locate the project that you want to open, and then click Open.
- On the Tools menu, click Choose Toolbox Items.
- Click the COM Components tab.
- In the Name column, click to select the Microsoft ImageList Control, version 6.0 check box.
- Click OK.
- Add an ImageList ActiveX control to the Windows Form.
Method 2: Add an equivalent managed Windows Forms control to the Windows FormAdd an equivalent managed Windows Forms control to the Windows Form that is created by the Visual Basic Upgrade Wizard. Then, bind the equivalent managed Windows Forms control to the upgraded ImageList control. For example, if the Visual Basic 6.0 project contains a TabStrip ActiveX control, add a TabPage managed Windows Forms control to the Windows Form. STATUS Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Major | Last Reviewed: | 6/27/2006 |
---|
Keywords: | kbtshoot kbbug KB919483 kbAudDeveloper |
---|
|