spoon16 spoon16 - 1 year ago 67
C# Question

How do I right align controls in a StatusStrip?

I am trying to right align a control in a

. How can I do that?

I don't see a property to set on
controls that specifies their physical alignment on the parent

How do I get Messages drop down to be right aligned?

Answer Source

Found it via MSDN forums almost immediately after posting :)

You can use a ToolStripLabel to pseudo right align controls by setting the Text property to string.Empty and setting the Spring property to true. This will cause it to fill all of the available space and push all the controls to the right of the ToolStripLabel over.

Right aligned Messages