BUG: Clearing ImageList From ToolBar Shrinks ToolBar Buttons
ID: Q194890
|
The information in this article applies to:
-
Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 6.0
SYMPTOMS
When clearing the "ImageList" property of a ToolBar control, the ToolBar
buttons unexpectedly shrink to a very small size.
RESOLUTION
Switching the application in and out of run-mode, or resetting the
ImageList property will cause the ToolBar buttons to revert to the correct
size.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATIONSteps to Reproduce Behavior
- Create a Standard EXE project in Visual Basic. Form1 is created by
default.
- Choose Components from the Project menu, check "Microsoft Windows Common
Controls 6.0," and click OK.
- Add a ToolBar and an ImageList control to Form1.
- View the ImageList's custom property page and select the "Images" tab.
- Click "Insert Picture," select one or more files from a folder under
the Icons folder, such as "Arw01dn.ico," and click "OK."
- View the ToolBar's custom property page.
- Set the "ImageList" property to "ImageList1."
- Click the "Buttons" tab and insert a button. Set this button's "Image"
property to "1" and click "Apply."
- Switch back to the "General" tab, set the "ImageList" property to
"<None>," and click "Apply." The button and the ToolBar shrink to a very
small size when no change in size was expected.
Additional query words:
Keywords : kbCmnCtrls kbToolbar kbVBp kbVBp600bug kbGrpVB
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
|