int count = 20;//比如20个List<漏裂Label> list = new List();for (int i = 0; i < count; i++){ Label label = new 前做Label() { Text = i.ToString(), Size = new Size(50, 20),Location 慧搜衡= new Point(10, 25 * i) }; list.Add(label);}this.Controls.AddRange(list.ToArray());//然后就可以用list[n]来访问第n个元素了。比如list[5].Text = "LABLE-5";
int count =用户指定数宏搏禅量;for(int i=0;i<蔽尘银旦count ;i++){Label label =new Label();label.Text="label"+i;label.Size=new Size(20,40);label.Location=new Point(10,10+25*i);this.Controls.Add(label);}