PDA

Click to See Complete Forum and Search --> : need help on MDIform


etron_neo
Aug 6th, 2002, 11:53 PM
I have one form which is MDIParent (formA), now i call a MDIchild (formB) from formA.

code:
Dim f as new formB
f.MDIParent=Me
f.show()

On formB, i have a button to call another normal form (formC).
My question is, how to make formC as child for formA?

thank you for your replies... i really appreciate it....

Matt02
Aug 6th, 2002, 11:57 PM
Just set formC to have the same parent as formB. So from within formB you would use this code.

Dim formC As New Form()
formC.MdiParent = Me.ParentForm
formC.Show()

etron_neo
Aug 7th, 2002, 02:20 AM
thank you for the code.... and my project now run smoothly....

thanks....