samedi 28 mars 2015

create textbox(control) in a different form C#

How can you create a control in a different form ?


I thought something like this but it's not working.



Form1 test = new Form1();
test.TextBox tb = new test.TextBox();
test.tb.Text = "TEST" + i;
Point p = new Point(i, j);
tb.Location = p;

Aucun commentaire:

Enregistrer un commentaire