111,129
社区成员
发帖
与我相关
我的任务
分享 int j = 1;
int m = 1;
for (int i = 0; i < 200; i++)
{
Button pb = new Button();
pb.Name = "button"+"i";
pb.Text = "123";
pb.Size = new Size(90, 90);
j = i / 6;
m = i % 6;
pb.Location = new Point(150+200*m, 150+200*j);
this.Controls.Add(pb);
}