need help on MDI form.

  • Thread starter Thread starter etron_neo
  • Start date Start date
E

etron_neo

Guest
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....
 
Have you tried making formB an MdiContainer, and then,

Dim fC as new formC
fC.MDIParent = Me
fC.Show()

(this would be in the code for formB)?

I know that you can have multiple MDI forms in a solution, but I don't know if one can be the child of another. I believe that it is possible though, since I had some pretty crazy errors like that in my program.

Also, by child, do you mean that formB would have the same relationship to form c, as formA has to formB? Or do you mean that formC inherits formB?

Thanks,
Mike
 
I have tested your code, but it doesn't work as i have planned. I have try another coding and it work as i plan, that is the coding :

Dim f As new formB
f.MDIParent=Me.parentform
f.show()

thank you for your reply. :)
 
Back
Top