#2
mcuee2020-09-24 08:35
|
程序代码:
List<Label> list = new List<Label>();
for (int i = 0; i < count; i++)
{
Label label = new Label()
{ Text = "Ch" + (i + 1).ToString(),
Size = new Size(50, 30),
Font = new Font("Courier New", 10F, FontStyle.Regular, GraphicsUnit.Point, ((Byte)(0))),
Location = new Point(110*(xPos)+20, yPos)
//此处如何设置控件位于底层
};
}