MDI - how to open a child from a child within MDI parent?

MDI - how to open a child from a child within MDI parent?

Post by Marina Ney » Sun, 08 Feb 2004 10:54:26


my problem is i have 3 form

mdi form: mdiParent
child form 1: frmProjects
child form 2: frmProjec

when my project start, it load a mdiParent form.
from the mdiParent's menus, i open the frmProjects (mdiParent's child form).
The problem is when i click a OK button on frmProjects, i failed to open the
frmProject which supposed to be a mdiParent's child form (frmProject opened
as an independent form which is not a mdiParent's child form).

How to call a mdi child form from another mdi child form?
 
 
 

MDI - how to open a child from a child within MDI parent?

Post by Bernie Yae » Mon, 09 Feb 2004 04:12:16

Dim newmdichildb As New reportprinter_viewerparam

newmdichildb.MdiParent = Me.MdiParent

newmdichildb.Show()

If you don't want it to be a child of the mdi parent, simply leave out the
second line above.

HTH,

Bernie Yaeger





form).
the
opened