BUG: Narrow ToolBar Control Painting

Last reviewed: October 8, 1996
Article ID: Q143407
The information in this article applies to:
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 32-bit, for Windows 4.0

SYMPTOMS

When inserting multiple buttons on a toolbar with the wrappable property set to TRUE, only first row of buttons are displayed when program is run.

WORKAROUND

Place the following code in the form load event.

Private Sub Form_Load()
 form1.show
 form1.refresh
End Sub

STATUS

Microsoft has confirmed this to be an issue in Visual Basic version 4.0, 32 bit. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce the Problem

  1. Start Visual Basic or from the File menu, choose New Project (ALT, F, N).

  2. Add a toolbar to the form.

  3. Choose the (Custom) entry in the Properties window.

  4. Insert 3 buttons from the ToolBar Control Properties dialog box.

  5. Set the Wrappable property to True.

  6. Re-size the form so that the buttons are wrapped.

  7. Run the program.

Results: Only the first row of buttons is displayed.

Resizing the form will allow all buttons to be displayed. Of course, the form's borderstyle must not be fixed.


Additional reference words: 4.00 vb4win vb432
KBCategory: kbprg kbbuglist
KBSubcategory: PrgCtrlsCus EnvtRun


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 8, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.