Reputation: 83
I wanna add a button,checkbox,tabcontrol and something like that with code. How can i do this?
Actually i wanna add something to tabcontrol.
I am using C#.
Upvotes: 0
Views: 1638
Reputation: 56
ref:How to dynamically generate a TextBox control.
TextBox txt = new TextBox();
txt.ID = "textBox1";
txt.Text = "txtbox";
tabcontrol1.Controls.Add(txt);
Label lbl = new Label();
lbl.Text = "Lbl";
tabcontrol1.Controls.Add(lbl);
Upvotes: 1
Reputation: 148
Have a look in the SDK samples, you have a lot of examples on how to do it.
Upvotes: 0