HOWTO: Put a ComboBox into a ToolbarLast reviewed: June 9, 1997Article ID: Q153928 |
The information in this article applies to:
SUMMARYThis article describes how to use the Toolbar control in the 32-bit version of Visual Basic 4.0 to allow programmers to add buttons to the Toolbar but not ComboBoxes. If you create a ComboBox at design time and place it on top of the Toolbar, the ComboBox will not appear when the program is run. This behavior occurs because the Toolbar has a higher precedence than the ComboBox on the Z-order. To put a ComboBox on a Toolbar, create a button on the Toolbar to act as a place holder, and position the ComboBox above the place holder in the Z-order, because you cannot place the ComboBox inside the place holder directly. Below is a code sample showing how this effect can be achieved.
MORE INFORMATION
|
Keywords : kbusage PrgOther vb4all vb4win kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |