I have two forms ( Form1 , Form2 ). Form1 appears immediately after the program starts, is the main one and is launched via Application.Run(new Form1()) . I need to implement the transition from Form1 to Form2 and vice versa, but so that only one form is displayed on the screen. The forms have buttons, go to Form2 and return to the main form. The transition to Form2 carried out through:
Form1.ActiveForm.Hide(); Form2 frm = new Form2(); frm.Show(); How do I implement a return to the main form?