Home All Groups Group Topic Archive Search About
Author
17 May 2006 7:26 PM
Buc
I am trying to create a MDI app, have 3 forms named:
frmParent
frmChild1
frmChild2

I use a menu and do a:
Dim frm As New frmChild1
frm.MdiParent = Me
frm.Show()
from the parent form.
This works fine. I need to call frmChild2 from the frmChild1 form sometimes
as well as from the parent form.
I can call it from the parent ok, but I cant figure out the code to call it
from the child1 form AND make it stay as a MDI child of the parent form. (it
just displays it as a single window.)
How can I show frmChild2 form from the frmChild1 form and keep it as an MDI
child of the parent?
I need to replace the ME with something else I guess in the child1 form, but
cant find the code combination
Thanks

Author
17 May 2006 6:45 PM
Barry
Hi,

Try this...

Dim frm as New frmChild2

frm.MdiParent = me.MdiParent

frm.Show

HTH

Barry
Author
17 May 2006 7:58 PM
Buc
Thanks, worked..

Show quoteHide quote
"Barry" <barry.ocon***@manx.net> wrote in message
news:1147891556.249747.67420@y43g2000cwc.googlegroups.com...
> Hi,
>
> Try this...
>
> Dim frm as New frmChild2
>
> frm.MdiParent = me.MdiParent
>
> frm.Show
>
> HTH
>
> Barry
>