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         }

行方向的使用类似

posted @ 2014-05-05 20:04  蛮大人  阅读(6748)  评论(0编辑  收藏  举报