Posts Tagged ‘Runtime creation of controls’

How to add controls to a form at runtime?

February 5, 2009

Dynamic creation of controls

Label lbl = new Label();

this.Controls.Add(lbl);

lbl.Name = lblName;

lbl.Text = “Name”;

Udhaya

Pisquare

Simsys