How to make form MDI parent and MDI CHild

How to make form MDI parent and MDI CHild

Post by harish mah » Thu, 01 Jan 2004 05:36:28


Hi Friends
Can any one guide me how to make a form MDIParent and other
forms as MDI Child of the MDI Parent form.

Thanks
 
 
 

How to make form MDI parent and MDI CHild

Post by Les Smit » Fri, 02 Jan 2004 06:22:11

First, in the property box of the MDI form, set the
IsMDIContainer property to True. That makes it an MDI
parent. Second, use code like the following to load a
child form.

' create a new editor window
Dim oFrm As New frmEditor
oFrm.MdiParent = Me
oFrm.Show()

The new instance of frmEditor will be an MDI child.

Articles, free code, add-ins, books at
http://www.yqcomputer.com/

other