private void button1_Click(object sender, System.EventArgs e)
{
Form form2=new Form2();
form2.BackColor=Color.Gold;
form2.Text="test";
TextBox tb1=new TextBox();
tb1.Location=new System.Drawing.Point(30,40);
tb1.Size=new System.Drawing.Size(0,100);
tb1.Text="";
form2.Controls.Add(tb1);


DialogResult res=form2.ShowDialog();
Form1的弹出窗体想动态构造一些控件,却无法显示为何?

}