Hi all,

I am developing a small application with VB 2005.

The application uses a 'main' MDI form (frmMain) within which I want 4 MDI children forms are to be displayed. The user clicks 'New Registration' menu and the first form displays on the parent form (this is happening, fine), after completing this form, the user then clicks the 'Next' button to open the 2nd form (*this isn't happening, problem!).

My code to open the 2nd form looks like:

....btnNext_Click(...)...

Dim SecondForm as New frmSecond

Me.Hide/Me.Close 'I tried both

SecondForm.MDIParent = frmMain
SecondForm.Show()

End Sub

The current form closes or hides but the SecondForm does not appear. What could be the problem here?