for (int col = 0; col <= tableLayoutPanel1.ColumnCount - 1; col++) { for (int rows = 0; rows <= tableLayoutPanel1.RowCount - 1; rows++) { tableLayoutPanel1.Controls.Clear(); tableLayoutPanel1.RowCount = int.Parse(rowsTextBox.Text); tableLayoutPanel1.ColumnCount = int.Parse(columnsTextBox.Text); Panel p = new Panel(); TextBox tb = new TextBox(); PictureBox picb = new PictureBox(); picb.BackColor = Color.White; p.Controls.Add(tb); p.Controls.Add(picb); picb.Location = new Point(0, tb.Top + 20); picb.MouseLeave += PicbLSB; tableLayoutPanel1.Controls.Add(p, col, rows); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)