在MDI表单的状态栏中右对齐工具条标签 [英] Right align toolstrip label in status Bar of MDI Form
问题描述
我的MDI表单中有一个状态栏.
内部状态栏上有3个Tooltrip状态标签,分别用于(CAPS锁定,滚动锁定和NUM锁定).
我还有一些其他信息,例如登录用户.
我想将它们放在状态栏的右侧.
有人可以帮我解决这个问题吗?
谢谢与问候
Asutosha Sarangi
Hi,
I have a status bar in my MDI Form.
Inside Status Bar I have 3 Toolstrip status label for (CAPS Lock, Scroll Lock and NUM Lock).
I have some other Information in the left hand side like login user.
I want to place them in the right side of the status bar.
Can anybody help me to resolve this issue?
Thanks and Regards
Asutosha Sarangi
推荐答案
How do I right align controls in a StatusStrip?
Example, a StatusStrip with 4 items: toolStripStatusLabel1,toolStripStatusLabel2,toolStripStatusLabel3,toolStripStatusLabel4
SettoolStripStatusLabel2
with blank Text and on page load, set:
toolStripStatusLabel2.Spring = true;
toolStripStatusLabel1将保留在左侧,而toolStripStatusLabel3,toolStripStatusLabel4将移至右侧.
toolStripStatusLabel1 will stay on the left side, while toolStripStatusLabel3,toolStripStatusLabel4 move to the right side.
StatusStrip.RightToLeft = Yes
StatusStrip是状态栏的ID
StatusStrip is the ID of Status bar
这篇关于在MDI表单的状态栏中右对齐工具条标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!