Help with ToolStrip Items resizing badly

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom P.

    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 DropDownComboBo x 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.
  • Jeff Gaines

    #2
    Re: Help with ToolStrip Items resizing badly

    On 14/08/2008 in message
    <644f6dce-22f6-4fc8-a26d-ec907a8c5f00@a7 0g2000hsh.googl egroups.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.button s 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

    Comment

    Working...