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

M

Marina Neyman

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?
 
B

Bernie Yaeger

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top