要求在FORM1中点button3后关闭form1,同时打开FORM2。
private void button3_Click(object sender, System.EventArgs e)
{
this.close();//关闭form1
}
private void button3_Click(object sender, System.EventArgs e)
{
this.close();//关闭form1
}
可以这么写:
this.Hide();//将Form1隐藏
Form2 frm2=new Form2();
frm2.ShowDialog();
this.Show();//显示Form1