Label[] lab = new Label[20]; int x = 240; for (int i = 1; i <= 10; i++) { lab[i] = new Label(); lab[i].Text = Convert.ToString(i); lab[i].Location = new Point(70,x); lab[i].Font.Size = new Size(10); lab[i].Size = new Size(35,13); x = x + 95; } this.Controls.AddRange(lab);
lab[i].Font = new Font ( lab[i].Font.FontFamily, 10 );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)