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

时间:2014-05-09 23:02:40   收藏:0   阅读:794

设计器:

bubuko.com,布布扣
 
代码:
在Form_Load事件中添加 :
statusStripMain.LayoutStyle= ToolStripLayoutStyle.HorizontalStackWithOverflow;
lbl单位.Alignment = ToolStripItemAlignment.Right;
lblCompany.Alignment = ToolStripItemAlignment.Right;
lbl联系电话.Alignment = ToolStripItemAlignment.Right;
lblTelephone.Alignment = ToolStripItemAlignment.Right;
 
运行效果:
bubuko.com,布布扣

Winform状态栏控件中Label靠右显示的方法,布布扣,bubuko.com

原文:http://www.cnblogs.com/ningkyolei/p/3718792.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!