How to add controls to a form at runtime?

Dynamic creation of controls

Label lbl = new Label();

this.Controls.Add(lbl);

lbl.Name = lblName;

lbl.Text = “Name”;

Udhaya

Pisquare

Simsys

Tags: , , , , , , , , ,

Leave a comment