批量添加控件只能添加第一个
我想批量添加lable到指定容器里,比如:
Label lbl1 = new Label();
lbl1.Name = "lable11";
lbl1.Text = "lable11";
lbl1.Location = new Point(53, 154);
this.gbList.Controls.Add(lbl1);
Label lbl2 = new Label();
lbl2.Name = "lable22";
lbl2.Text = "lable22";
lbl2.Location = new Point(101,154);
this.gbList.Controls.Add(lbl2);