你在Form1 中定义一个公共属性,如
public string TextVal
{
//这为文本框
get{ return textBox3.Text;;}
}
if (frm.TextVal== "1" )
{
this.Hide();
Form2 F2 = new Form2();
F2.Show();
}
else if (frm.TextVal == "2" )
{
this.Hide();
Form3 F3 = new Form3();
F3.Show();
}
这样处理不就很完美吗。