How dynamically, at the touch of a button, for example, add a line to System.Windows.Forms.TableLayoutPanel and add a button to this line.
UPDATE: Now the following code is used for adding:
this.tableLayoutPanel1.SuspendLayout(); this.SuspendLayout(); tableLayoutPanel1.BackColor = Color.Blue; for (int i = 0; i < 3; i++) { this.tableLayoutPanel1.RowCount = ++this.tableLayoutPanel1.RowCount; this.tableLayoutPanel1.Size = new System.Drawing.Size(200, this.tableLayoutPanel1.Size.Height + 100); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.Controls.Add(new Button(), 0, i); } this.tableLayoutPanel1.ResumeLayout(false); this.ResumeLayout(false); this.Refresh(); int j = tableLayoutPanel1.RowCount;