In my program, there is a button you click that brings up a new form. This form runs a process. On the form (second form) closing event, I have
e.Cancel = true; Hide();
So now the form that runs the process is hidden. Now, the way i want it to work, is that when they click the button to open the form that runs the process *after* its been hidden, it should bring up the existing form instead of a new one. So basically the code for the button that opens form2 will have to check to see that the form is hidden, and if it is, show it. If its not hidden, open a new instance of it. The way i know how to open a new form is
Form2 frm = new Form2(); frm.Show()
But the problem with that is that it opens a new instance every time. How can I show an existing hidden form?
Sorry if I seemed unclear.. let me know. Any help would be greatly appreciated.