button onclick事件Form2 form = new Fom2();form.hide();form2.ShowDialog();
Form2 form = new Fom2();Form1.Hide();Form2.Show();