MDIchildren property

wz2jrz

Newcomer
Joined
Apr 24, 2003
Messages
16
I have form1 set as MDIParent. I need to set form2 as mdichild but i didnt see any mdichildren property under form2 !!

also when i tried setting in code, it says it is readonly property.

how's my code-
i am setting both forms as new in sub main and then showing form1. from form1 menu, i am opening form2.


any help with this appreciated...
 
From your main form:

Visual Basic:
Dim f As New Form2()
f.MdiParent = Me
f.Show()

That ought to do what you need.
 
Back
Top