A MDI in a MDI
-
i've have been asked to create a gui that is a mdi in a mdi. by this i mean that the main form at a mdiparent and the host mdichildern who in turn act as a mdiparents and host their own mdi children. i've this and received a clear error say a mdiparent can not be a mdichild as well. my question is does anybody know a way around this or an alternative to a "mdi in a mdi"? any reply is appreciated.
-
i've have been asked to create a gui that is a mdi in a mdi. by this i mean that the main form at a mdiparent and the host mdichildern who in turn act as a mdiparents and host their own mdi children. i've this and received a clear error say a mdiparent can not be a mdichild as well. my question is does anybody know a way around this or an alternative to a "mdi in a mdi"? any reply is appreciated.
-
i've have been asked to create a gui that is a mdi in a mdi. by this i mean that the main form at a mdiparent and the host mdichildern who in turn act as a mdiparents and host their own mdi children. i've this and received a clear error say a mdiparent can not be a mdichild as well. my question is does anybody know a way around this or an alternative to a "mdi in a mdi"? any reply is appreciated.
-
i've have been asked to create a gui that is a mdi in a mdi. by this i mean that the main form at a mdiparent and the host mdichildern who in turn act as a mdiparents and host their own mdi children. i've this and received a clear error say a mdiparent can not be a mdichild as well. my question is does anybody know a way around this or an alternative to a "mdi in a mdi"? any reply is appreciated.
At the very, very worst, you could completely avoid any built-in MDI functionality and write it yourself. Besides some interesting user-interface tweaks, MDI is basically a set of forms inside another set of forms, which can be done rather easily. John
"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek. -
At the very, very worst, you could completely avoid any built-in MDI functionality and write it yourself. Besides some interesting user-interface tweaks, MDI is basically a set of forms inside another set of forms, which can be done rather easily. John
"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek. -
thats fine as it seems to be my only option but, can point in the direction to find out how to that because i'm guessing it would invole some win32 calls?
The Win32 calls would only come in if you need to have the main form, its sub-form, and then the 3rd level sub-form all showing a title bar that indicates it is active. I'm not really if there is anything else to the base MDI document behavior. To add a form as a child of another form, make a constructor to the (sub)form class which takes the parent as a parameter. Then, in that constructor, set TopLevel to false, and Parent to the parent form. It would look like this:
public MyMdiForm(System.Windows.Forms.Form parent)
{
InitializeComponents();this.TopLevel = false; this.Parent = parent;
}
To handle the look that needs multiple forms to display as active, check this[^]out. John
"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.