閃爍問題
private void Form1_Load(object sender, EventArgs e)
{
//反射處理Protected的 DoubleBuffered屬性
tableLayoutPanel1.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(tableLayoutPanel1, true, null);
}
控制項加入後 Fill 格子
TextBox tb = new TextBox();
tb.Multiline = true;
tb.Margin = new Padding(0, 0, 0, 0); //邊介改為0,new Padding(0);
tb.Dock = DockStyle.Fill;
tb.TextAlign = HorizontalAlignment.Right;
tb.Text = "j=" + j + " * " + i + "=i ";
tb.Name = "tb"+j+i;
tb.Click +=new EventHandler(tb_Click);
Columns | Columns | Columns
ROW| [0][0] | [0][1] | [0][2] |
ROW| [1][0] | [1][1] | [1][2] |
ROW| [2][0] | [2][1] | [2][2] |
DataRow[] foundRows;
foundRows[Rows][Columns].ToString();
沒有留言:
張貼留言