FIX: Buttons On Wrappable Toolbar Do Not Appear (143407)



The information in this article applies to:

  • Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
  • Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
  • Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0

This article was previously published under Q143407

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.

Modification Type:MajorLast Reviewed:11/18/2003
Keywords:kbbug kbfix KB143407