tablelayoutpanel 动态调整行列宽度

1         private void SetTableLayout()
2         {
3             this.tableLayoutPanel1.ColumnStyles[0] = 
4                 new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 
5                     tableLayoutPanel1.Width/2);
6             this.tableLayoutPanel1.ColumnStyles[1] =
7                 new ColumnStyle(SizeType.Percent,
8                     100);
9         }

行方向的使用类似

转载于:https://www.cnblogs.com/mandaren/p/3709932.html

你可能感兴趣的:(tablelayoutpanel 动态调整行列宽度)