Mdi Parent controls showing on Mdi Child forms

Mdi Parent controls showing on Mdi Child forms

Post by QnJpbmRsZX » Fri, 07 Jan 2005 21:41:01


Hi there,

In my Mdi application, I have placed a set of controls on the parent form to
call child forms. The problem is that the controls hide the child forms. I
have used SendToBack when Im calling the child form, that works fine.

The problem arrises when I want to show those controls again when I close
the child form. Im sure BringToFront will work but im not sure how to do this
from the child form.

Please help!
 
 
 

Mdi Parent controls showing on Mdi Child forms

Post by Cor Ligthe » Sat, 08 Jan 2005 02:55:25

Brindley,

For the MDI parent it is nicer to use beside the menu's the buttonbar, and
that than as can do as with other controls dock them to the top. The button
bar (toolbar) does that automaticly because it is in it.

http://www.yqcomputer.com/

I hope this helps?

Cor


"Brindley" < XXXX@XXXXX.COM >

 
 
 

Mdi Parent controls showing on Mdi Child forms

Post by QnJpbmRsZX » Sat, 08 Jan 2005 14:33:03

Thanks.

I found that it's much easier to use another form as a program menu instead
of using the Mdi Parent form for this. For each of the new forms that Is
created from another child form, I assigned the new child form to the active
Mdi Parent form.

Used:


Private Sub,,,,

Dim Menu as new frmMenu

Menu.MdiParent = frmMain.activeform 'frmMain is the main parent form.
me.close()
Menu.show()

End Sub

Thanks for your imput.
Brindley