TableLayoutPanel
生活随笔
收集整理的這篇文章主要介紹了
TableLayoutPanel
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
代碼
private void button3_Click(object sender, EventArgs e){TableLayoutPanel tl = new TableLayoutPanel();tl.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single;for (int i = 0; i < 3; i++){tl.RowStyles.Add(new RowStyle(SizeType.Percent, 30));}for (int i = 0; i < 3; i++){tl.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 30));}//tl.ColumnCount = 3; 如果沒有這兩句賦值,則只顯示一個大方框如下//tl.RowCount = 3;this.Controls.Add(tl);}?
ss
轉載于:https://www.cnblogs.com/dlzh/p/5714013.html
總結
以上是生活随笔為你收集整理的TableLayoutPanel的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 多媒体应用-swift
- 下一篇: 基于简单工厂模式的计算器程序