List<Label> labels = new List<Label>(); for (int i = 0; i < 8; i++) { labels.Add(new Label()); labels[i].Location = new Point(6 + i, 26 + i); labels[i].Text = "test"; labels[i].Size = new Size(70, 40); groupBox3.Controls.Add(labels[i]); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)