在主函数中NEW出FORM2 ,然后再发form2中的构造函数中书写下列代码:
Form1 f1=new Form1;
f1ShowDialog();
在button 点击事件中书写下列代码
this.close();
以上代码可以实现你要的效果,如有其他需要请HI我
this.form1.close();
Form form2=new Foem();
form2.showDialog();
private void button1_Click(object sender, EventArgs e)
{
this.Hide();
new Form2().ShowDialog();
this.Close();
}