-1

In my program there are 2 forms. There is a loop function in Form1. I can show Form2 from a button. By using:

Form1 form2 = new Form2();
frm2.show(); 

method. When I pressed a button on From2 to show Form1, Form1 starts its loop again(resets). How can I hide Form1 temporary and show it again from the point it hides.

2

1 Answer 1

0

You can use Form1.Hide() which keeps the instance alive while don't displays it. For better answers you need to provide more code and also better explanation of your case scenario.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.