Add New textbox At Runtime.


private void button1_Click(object sender, EventArgs e)
{
                                //Set The Location On The Form Using X & Y Axes...
                                txtMyNewTextBox.Location = new Point(12, 12);

                                //It Will Add New Textbox To Form Runtime...
                                this.Controls.Add(txtMyNewTextBox);
}


Ebook Download
View all
Learn
View all