设计器:

Winform状态栏控件中Label靠右显示的方法
 
代码:
在Form_Load事件中添加 :
statusStripMain.LayoutStyle= ToolStripLayoutStyle.HorizontalStackWithOverflow;
lbl单位.Alignment = ToolStripItemAlignment.Right;
lblCompany.Alignment = ToolStripItemAlignment.Right;
lbl联系电话.Alignment = ToolStripItemAlignment.Right;
lblTelephone.Alignment = ToolStripItemAlignment.Right;
 
运行效果:
Winform状态栏控件中Label靠右显示的方法

相关文章:

  • 2021-08-13
  • 2022-02-07
  • 2021-11-14
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
猜你喜欢
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案