Dynamic creation of controls
Label lbl = new Label();
this.Controls.Add(lbl);
lbl.Name = lblName;
lbl.Text = “Name”;
Tags: .Net, c#.net, CSharp, Dynamic controls, How to add controls to a form at runtime, pisquare, Runtime creation of controls, simsys, udhaya, VB.Net
Leave a comment