1
How do I dynamically add the controls to my form? During the program depending on what happens I would like to add controls(button,textbox) to my program.
1
How do I dynamically add the controls to my form? During the program depending on what happens I would like to add controls(button,textbox) to my program.
2
TextBox t1 = new TextBox();
t1.Location = new Point(10, 10);
t1.Text = "Olá Mundo!";
this.Controls.Add(t1);
See if it works ^^
Browser other questions tagged c#
You are not signed in. Login or sign up in order to post.
That’s right, thanks! I’ll add other options default tb, vlwzao
– user68615