|
-
December 24th, 2008, 04:25 AM
#1
Displaying an MDIChild form
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|