Mimick Spring on ToolStrip
Posted on 2006-07-19
I was trying to figure out how to span a control on the ToolStrip to expand to fill the entire ToolStrip (with other controls on it as well), similar to AutoSize=Spring for the StatusStrip.
So what I did is similar to the following:
Control.Width = ToolStrip.Width - ToolStrip.Padding.Horizontal - ToolStrip.Margin.Horizontal - (the other widths of the controls)
(BTW, grip is invisible)
Even then, it still overflows and I have to subtract by an arbitrary number to get it to fit...
Am I missing something?