Close Parent Window when Opening Child Window
After executing ShowDialog(), the following code will not be executed before closing the child window.
public partial class Parent : System.Windows.Forms.Form
{
public Parent()
{
InitializeComponent();
}
private void toChild_Click(object sender, EventArgs e)
{
Child child = new Child();
this.Hide();
child.ShowDialog();
this.Close();
}
}
把圈子变小,把语言变干净,把成绩往上提,把故事往心里收,现在想要的以后你都会有。

浙公网安备 33010602011771号