//Adding a child panel Panel p = new Panel(); //Adding controls to panel Label lbl5 = new Label(); lbl5.Location = new Point(105, 3); lbl5.Text = note.noteName; Label lbl6 = new Label(); lbl6.Location = new Point(105, 43); lbl6.Text = note.noteName; //Adding child panel to main panel Panel1.Controls.Add(p);
name
var ctrl = Panel1.Controls["Your Control Name"];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)