日期:2014-05-20 浏览次数:20733 次
private void button1_Click(object sender, EventArgs e) { int count = 5; //查处来的个数 for (int i = 0; i < count; i++) { TextBox tbox = new TextBox(); //用户控件 tbox.Text = "查出来的数据"; tbox.Location = new Point(30, i * tbox.Height); this.Controls.Add(tbox); } }