|
-
Aug 24th, 2011, 08:57 AM
#1
Thread Starter
Fanatic Member
MDIforms
I have a form already created, but now want to expand the application.
I created a MDIParent, but cant seem to find how to change the existing form to an MDI child.
In VB6 it was as simple as a click in the properties....
-
Aug 24th, 2011, 09:20 AM
#2
Re: MDIforms
by setting the MDIPArent when you show the form...
Code:
' Create a new instance of the child form.
Dim ChildForm As New System.Windows.Forms.Form
' Make it a child of this MDI form before showing it.
ChildForm.MdiParent = Me
-tg
-
Aug 24th, 2011, 10:40 AM
#3
Thread Starter
Fanatic Member
Re: MDIforms
 Originally Posted by techgnome
by setting the MDIPArent when you show the form...
-tg
In the form load of the called form?
I can open the form, but its over the top of the parent form.
IIRC, a child form opens with in the parent frame.
Last edited by juliemac; Aug 24th, 2011 at 10:53 AM.
-
Aug 24th, 2011, 10:45 AM
#4
Addicted Member
Re: MDIforms
 Originally Posted by juliemac
In the form load of the called form?
As in TG's example, when you create the form.
Maybe it's the click event of a button used to create a new MDI Child.
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
|