How to set the widths of StatusStrip items?

2.6k Views Asked by At

I have the following:

StatusStrip
   ToolStripStatusLabel
   ToolStripStatusLabel
   ToolStripProgressBar

The StatusStrip is set to take the full width of the WinForm.

The first ToolStripStatusLabel is set to 200 pixels wide and the ToolStripProgressBar is set to 50 pixels wide.

How can I set the second ToolStripStatusLabel to expand to take up the rest of the WinForm width? I basically want the progress bar item to be always at the far right no matter the form width.

1

There are 1 best solutions below

1
Andrew Truckle On BEST ANSWER

It was brought to my attention that I could use the Spring property.

But this is designed to work on the last object on the status strip. So I adjusted the order of my objects accordingly.