ProAnswers.org

How do you restore a form after closing another in VB?

How do you restore a form after closing another in VB?

Suppose you have form 1, form 2 and form 3. form1 and form2 are showing. You press a button on form1 and form2 dissapears but form 3 shows. The code to the button would be as simple as this:
Form2.Hide()
Form3.Show()
And when you want to close a form make sure you use Hide() not Close() if you want to be able to restore it later.