this.Hide(); var form2 = new Form2(); form2.Closed += (s, args) => this.Close(); form2.Show();
{ this.Hide(); Form1 f1 = new Form1(); f1.ShowDialog(); this.Close(); }