How do I right align controls in a StatusStrip?

2019-01-31 21:38发布

I am trying to right align a control in a StatusStrip. How can I do that?

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

How do I get Messages drop down to be right aligned? http://i.friendfeed.com/ed90b205f64099687db30553daa79d075f280b90

8条回答
混吃等死
2楼-- · 2019-01-31 22:27

I found that you can set the StatusStrip Layout to HorizontalStackWithOverflow. Then, for each control on the StatusStrip that you want on the right side, set the control Alignment to Right.

I like this better since you don't need any extra or dummy controls to align.

查看更多
萌系小妹纸
3楼-- · 2019-01-31 22:28

Keep a Toolstrip label , set Spring property as true and for label align text in BottomLeft

查看更多
登录 后发表回答