471,330 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Help with ToolStrip Items resizing badly

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
1 3792
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.

Similar topics

reply views Thread by gene kelley | last post: by
4 posts views Thread by Adam Honek | last post: by
reply views Thread by Jon Davis | last post: by
1 post views Thread by trainersb | last post: by
reply views Thread by =?Utf-8?B?Q2hyaXMgV2Fsa2Vy?= | last post: by
2 posts views Thread by Doc John | last post: by
2 posts views Thread by daveL | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.