Windows Develop Bookmark and Share   
 index > Windows Forms General > Multiline ToolStrip
 

Multiline ToolStrip

Greetings,
I'm still struggling with my floating ToolStrips. Now, my goal is to make the ToolStrip adapt when the floating form that contains it is resized.
My idea is to mimic the behavior seen in Visual Studio or Office (before ribbonish 2007, of course) floating toolbars, among other examples: as the float-form is shrunk horitzontally, it should grow vertically to make room for the strip's controls; and similar behaviors when resizing in other directions. This isn't too much of an issue on its own, but: how can I make the ToolStrip to use the extra v-space I'm granting to it to render extra rows with controls?

Thanks in advance for any answer.

Regards,
Herenvardö
herenvardo  Friday, September 11, 2009 6:28 PM
You'll need LayoutStyle = Flow.

Hans Passant.
  • Marked As Answer byherenvardo Friday, September 11, 2009 7:15 PM
  •  
nobugz  Friday, September 11, 2009 7:09 PM
You'll need LayoutStyle = Flow.

Hans Passant.
  • Marked As Answer byherenvardo Friday, September 11, 2009 7:15 PM
  •  
nobugz  Friday, September 11, 2009 7:09 PM
I'd swear I had tried that (as well as all other values of the ToolStripLayoutStyle enumeration). Anyway, tried again and worked fine, thanks!

I wonder what I had tried on the first place O_o Maybe I should just leave these bars aside for a couple of days ^^'
herenvardo  Friday, September 11, 2009 7:17 PM

You can use google to search for other answers

Custom Search

More Threads

• how to print my form
• Custom Control Crashes VS2008 when dragged onto designer
• Reviewing events from a called routine
• Translation, XML, XSLT...
• Title Not Displayed in a Popup Form
• Line Break question
• Cross Thread exception .....
• Programatically scroll the C# browser window
• WinForms
• How does one export a Visual Basic 2008 Project