Hi,

This problems is getting around the net with no proper answer:

--
I have a form (Form1 class) which has got a "next" button (like we have setup wizards) which shud take me to other form. Now that other form has two buttons , next and back , and it shud take me to the previous and the next form. And I want to preserve the states of each form.

What I did was that I instantiated the Form2 class in the click event of the next button :

me.visible = false
dim x as new form2
form2.show()

That does the job of showing the second form . In the click event (of the back button) handler of the second form , I have the following code:

Form1.ActiveForm.Visible = True
Me.Visible = False

Now , when I press the back button , the program hangs. And nothing happens.
--

Can you please explain how to hide/show forms with .NET. In VB6 it's quite easy using Show/Hide methods.