Article ID: 919483 - Last Review: June 27, 2006 - Revision: 1.0 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
On This PageSYMPTOMSConsider 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:
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. MORE INFORMATIONSteps to reproduce the problem
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
