Knowledge Base

FIX: Buttons On Wrappable Toolbar Do Not Appear

Article ID: 143407

Article Last Modified on 11/18/2003


APPLIES TO


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.

Additional query words: kbVBp400bug kbVBp500fix kbVBp kbdsd kbDSupport kbControl

Keywords: kbbug kbfix KB143407