Help with ToolStrip Items resizing badly

T

Tom P.

It's kind of hard to explain (so if you need more just ask) and any
help would be greatly appreciated.

I am writing a side-by-side file manager. On each side I have a
DropDownButton that holds either the root name or the Favorite name
for the current path. I also have a DropDownComboBox that has the
current full path as well as a series of paths that lead back to the
root (i.e. "C;\Program Files\Microsoft Office", "C:\Program Files", "C:
\"). I want them all to stay in the ToolStrip, no overflow at all.

But the problem (I think) I have is that the various AutoSize settings
are getting into conflict with each other. Because if I set everything
to AutoSize = false; one, but only one, of the comboboxes does resize.
But it resizes to be huge and fall off the toolstrip (or run off the
NC edge so you can't click on the drop arrow).

I can't get any combination of AutoSize and Overflow settings to stop
the bloody thing from resizing and pushing one or the other or some
combination of controls off the toolstrip.

Is there a way to actually turn Overflow off? Does the ToolStrip
Control actually work? Do I need to just skip the toolstrip and
rebuild with a FlowLayoutPanel? If so how do I replicate the dropdown
button?

This is really annoying me.

Thanks for any help you can give.

Tom P.
 
J

Jeff Gaines

Is there a way to actually turn Overflow off? Does the ToolStrip
Control actually work? Do I need to just skip the toolstrip and
rebuild with a FlowLayoutPanel? If so how do I replicate the dropdown
button?

Turn off auto sizing for the Toolbar AND all the individual
controls.buttons on it, then trap the form Layout/Resize events and do it
manually.

This is really annoying me.

I know exactly how you feel, took me ages to figure it out!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top