MDI / Child Form problem

wypman

New member
Joined
Jun 27, 2006
Messages
4
Programming Experience
Beginner
MDI Form problem.

I have 2 forms Form1 I have set the IsMdiContainer to true. Form2 I want to use as the child form - but I cannot find a property that refers to using Form1 as the parent? Do I have to load a component or can it only be specified using code?
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,603
Location
Norway
Programming Experience
10+

cjard

Well-known member
Joined
Apr 25, 2006
Messages
7,052
Programming Experience
10+
I cannot find a property that refers to using Form1 as the parent? Do I have to load a component or can it only be specified using code?


There is no property that you can set at design time that determines the MDI status of a form. It is set as per JohnH instruction at runtime:

'in the parent container
Dim x as New Form1()
x.MdiParent = Me
x.Show()
 
Top Bottom