Winform状态栏控件中Label靠右显示的方法

设计器:

 
代码:
在Form_Load事件中添加 :
statusStripMain.LayoutStyle= ToolStripLayoutStyle.HorizontalStackWithOverflow;
lbl单位.Alignment = ToolStripItemAlignment.Right;
lblCompany.Alignment = ToolStripItemAlignment.Right;
lbl联系电话.Alignment = ToolStripItemAlignment.Right;
lblTelephone.Alignment = ToolStripItemAlignment.Right;
 
运行效果:
posted @ 2014-05-09 14:10  泪已凝  阅读(2308)  评论(1编辑  收藏  举报