How to Add TextBox In Form At Runtime?
By Goniey N (Mr. G)
It Will Add Textbox To Your Form At Runtime on Button Click Event...
private void button1_Click(object sender, EventArgs e)
{
TextBox txtMyBox1 = new TextBox();
//Set The Location On The Form Using X & Y Axes...
txtMyBox1.Location = new Point(12, 12);
//It Will Add New Textbox To Form Runtime...
this.Controls.Add(txtMyBox1);
}
How to Add TextBox In Form At Runtime? (1139 Views)