Helo,
When I drag and drop a ComboBox over the Toolbar, Visual Studio seems to add
the combo to the main form not the toolbar. After this I tried adding the
combo manually to the toolbar controls collection. This works fine, but some
times it messes up and the Form Designer won't show any controls at all.
When this happens if I modify anything on the Form designer, my entire form
gets whipped out and I find that my controls have dissapeared.
To solve this issue I created a new control inherited from the Toolbar and I
add here the ComboBox... The only problem here is that the ComboBox will
only show one item and the scroll. I need more items shown on the list.
Don't really know how to solve this issue at the moment. Help would be
appreciated.
Another problem is that the window must be fixed, since it won't resize
correctly the toolbar to fit the ComboBox... This issue isn't much of a
problem since I need it for a fixed (Not resizable) window.
The DropDown Button was another option I was considering, but I can't get a
fixed width for it, therefore it gives a strange felling when changing
items.
"Gerry O'Brien [MVP]" <gk******@hotmail.com> escribió en el mensaje
news:uL**************@TK2MSFTNGP14.phx.gbl...
Not sure if this is what you are looking for but, you can add a combobox
to a toolbar by dragging and dropping it onto a toolbar on your form.
You might find it better to create a menu, then add a button to the
toolbar that references that menu and has a style of dropdown.
These are all properties found in the toolbar buttons collection.
--
Gerry O'Brien
Visual Basic .NET MVP
"Juan Pedro Gonzalez" <th******@terra.es> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...I wanted to add a Combobox to a toolbar... Kind of the look you get on
VisualStudio's toolbar.
I've been able to find some VB 6 samples, but the placeholder option is
no longer available for ToolbarButtons...
Does anyone know how this could be done?
Looking forward to hear from you,
Juan