|
-
Mar 26th, 2007, 06:01 PM
#1
Thread Starter
Fanatic Member
[RESOLVED][2005] MDI Parent & Child Form Problems
i have got am MDI parent form in my application however i seem to be having a few problems setting forms up as MDI children of the parent form so that i can use the centerparent position for the position of each form. i have look in MSDN and its expreamly complicated and i cant get my head round it.
Can anyone please help me?
Last edited by frosty16; Mar 26th, 2007 at 06:37 PM.
-
Mar 26th, 2007, 06:20 PM
#2
Re: [2005] MDI Parent & Child Form Problems
It's actually very simple:
vb Code:
Dim childForm As New Form
childForm.MdiParent = Me
childForm.Show()
That assumes that you've already set the IsMdiContainer property of the parent form to True, which you would do in the designer.
-
Mar 26th, 2007, 06:26 PM
#3
Thread Starter
Fanatic Member
Re: [2005] MDI Parent & Child Form Problems
i have tried that and it seems to create a new form
can i do it with a form that i have created manually
-
Mar 26th, 2007, 06:35 PM
#4
Thread Starter
Fanatic Member
Re: [2005] MDI Parent & Child Form Problems
sorted it i jst removed the dim part and jst changed the other to my form name
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
|