日期:2014-05-18 浏览次数:21097 次
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i < 50; i++)
{
TextBox txtBox = new TextBox();
txtBox.Name = "TextBox" + i.ToString();
txtBox.Width = 50;
txtBox.Location = new Point(100+(i%5)*50,100+(i/5)*30);
this.Controls.Add(txtBox);
}
}