FIX: Buttons On Wrappable Toolbar Do Not Appear

ID: Q143407


The information in this article applies to:
  • Microsoft Visual Basic Standard, Professional, and Enterprise Editions, 32-bit only, for Windows, version 4.0


SYMPTOMS

When inserting multiple buttons on a toolbar with the wrappable property set to TRUE, only the first row of buttons is displayed when the 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 a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Basic 5.0.


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 query words: kbVBp400bug kbVBp500fix kbVBp kbdsd kbDSupport kbControl

Keywords : kbGrpVB
Version : WINDOWS:4.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: February 2, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.