Article ID: 223117 - Last Review: May 13, 2003 - Revision: 2.2

FIX: Customizing Toolbar at Run-time Modifies Buttons

This article was previously published under Q223117

On This Page

Expand all | Collapse all

SYMPTOMS

A Visual Basic project uses the Toolbar from the Microsoft Common Controls 6.0 ActiveX control (mscomctl.ocx). At run-time, you double-click the toolbar to display the Customize Toolbar dialog box. When you add a Separator to the Toolbar buttons list box, the size of the existing toolbar buttons changes in the toolbar control.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why  (http://support.microsoft.com/kb/194022/EN-US/ )

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed  (http://support.microsoft.com/kb/194295/EN-US/ )

MORE INFORMATION

This section shows you how to create a sample project that demonstrates the bug behavior. The section assumes you are familiar with adding a control to your Visual Basic project and with using the Toolbar component of the Microsoft Common Control 6.0 ActiveX control. If you are not familiar with these tasks, see the REFERENCES section below for more information.

Steps to Reproduce Behavior

  1. Start a new Standard EXE project in Visual Basic. Form1 is created by default.
  2. From the Project menu, select Components and add a reference to the Microsoft Windows Common Controls 6.0.
  3. Add a Toolbar to Form1.
  4. Alternate-click on the Toolbar and select Properties. From the Buttons tab, add two buttons to the Toolbar.
  5. On the Run menu, select Start, or press the F5 key to start the program.
  6. Double-click the toolbar. The Customize Toolbar dialog box appears. Position the Customize Toolbar dialog box so that you can see the Toolbar buttons in Form1.
  7. In the Available buttons list box, select Separator and click the Add button.

    BUG: When the Separator is added, the buttons on the Toolbar grow larger.

REFERENCES


APPLIES TO
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
Keywords: 
kbbug kbcmnctrls kbctrl kbfix kbtoolbar kbvs600sp3fix KB223117
 

Article Translations