实例华:Form1.
Form1 n=new Form1();
if(n.showDialog()==DialogResult.ok)
{}
else
{
Application.Exit();
}
Button.show();this.Hide();
this.Close();