By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,725 Members | 1,269 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,725 IT Pros & Developers. It's quick & easy.

Help with ToolStrip Items resizing badly

P: n/a
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.
Aug 14 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 14/08/2008 in message
<64**********************************@a70g2000hsh. googlegroups.comTom P.
wrote:
>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!

--
Jeff Gaines Damerham Hampshire UK
All things being equal, fat people use more soap
Aug 14 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.