MDI Form inside another MDI Form???

If you try you get this error message that directly answers your question:
System.ArgumentException: Form cannot be both an MDI child and MDI parent.
That said, without using the MDI mechanism you can still put forms inside other forms/controls, to do this set the child forms .TopLevel property False and add the form instance to the .Controls collection. It's something you could try out. Example:
VB.NET:
dim f as new childform
f.toplevel=false
me.controls.add(f)
f.show()
 
It's not working

Thanks John for your help...

The code sample you gave me, i tried it out but it's not working...

I'm getting the following message
(I'm translating the message from spanish to english so maybe it's not going to be accurate)

"Forms inside MDI container have to be as-toplevel (superior level)"...

Again, thanks...
 
As I said you can't use MDI for this. Turn off MDI if you want to try the tip.
 
Back
Top