C# 生成 Panel 然后再 panel里面再生成一个label
Panel panel = new Panel(); panel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; //画出来的panel有线 panel.Width = 100; //正方形大小 panel.Height = 100; //正方形大小 panel.Location = new Point(x * 108, y * 108); //正方形的坐标 Label lbl=new Label(); lbl.Text = "123"; lbl.Location = new Point(x * 100, y * 100); panel.Controls.Add(lbl); pel.Controls.Add(panel);生成出来 的panel 里面还有个Lable 应该怎么写 这样写 只有第一个panel有Lable 如果生成 2 个 到3个 只有第一个panel有Lable 剩的都没有123