How to show a form again after hiding it?
问题 I have two forms. I need to open a second form with a button. When I open form2 I hide form1. However when I try to show form1 again from form2 with a button it doesn't work. My form1 code is: Form2 form2 = new Form2(); form2.ShowDialog(); Inside form2 code: Form1.ActiveForm.ShowDialog(); or Form1.ActiveForm.Show(); or form1.show(); (form1 doesn't exist in the current context) doesn't work. I do not want to open a new form Form1 form1 = new Form1(); form1.ShowDialog(); I want show the form