[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?
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.
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
Re: [2005] MDI Parent & Child Form Problems
sorted it i jst removed the dim part and jst changed the other to my form name