I have a form with a statusbar that has 2 ToolStripStatusLabel
s followed by a ToolStripProgressBar
. I want the progressbar to be always anchored to the right of the statusbar - so when the window is resized/maximized, it should automatically move/repaint.
I thought this would be as simple as setting the 1st (left aligned) ToolStripStatusLabel
's Spring
property to true, so when the form is resized/increased in size, and there is more space available, the 1st ToolStripStatusLabel
would fill up that space and automatically push the ToolStripProgressBar
to the Right.
But not only does that not do what I want - the 1st ToolStripStatusLabel
actually covers up both the 2nd StatusLabel
and the ProgressBar
, basically occupying the whole statusbar.
None of the ToolStrip controls have Anchor or even a MinSize.
SO how do I :
- Anchor the
ToolStripProgressBar
to right of StatusBar(StatusStrip) - Mix some fixed size items (e.g the
ToolStripStatusLabel2
andToolStripProgressBar
) with a variably sizedToolStripStatusLabel1
that grows when there is extra space?
Thanks in advance for your time and help !
~IM