private void button1_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.Owner = this;
f2.Show();
this.Hide();
}
//不要设置f2.MdiParent=this,这样会把父窗体和子窗体都关掉。
private void button1_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.Owner = this;
f2.Show();
this.Hide();
}
//不要设置f2.MdiParent=this,这样会把父窗体和子窗体都关掉。