Open MDI Child form from already MDI child form
-
Hello, I need to build an MDI application. After opening forms as MDI Child if I need to open further form from those MDIChild form it don't follow MDI Application. So how can i make a form as MDI child of the form which is already an MDI child. Thanks for ur support Inpreet Singh
-
Hello, I need to build an MDI application. After opening forms as MDI Child if I need to open further form from those MDIChild form it don't follow MDI Application. So how can i make a form as MDI child of the form which is already an MDI child. Thanks for ur support Inpreet Singh
The .NET Framework - and the underlying Windows Management APIs - do not support this. You should rethink your application design. You should also read the Windows User Interface Guidelines[^]. Such a design would be confusing for more users anyway. One common approach would be to bind controls to a hierarchical list (like a
TreeView
), similar to Mozilla preferences. There are several articles here on CodeProject about such a UI as well. If you require this type of UI, then like many other applications with custom UIs you must design all the supporting APIs yourself.Microsoft MVP, Visual C# My Articles
-
Hello, I need to build an MDI application. After opening forms as MDI Child if I need to open further form from those MDIChild form it don't follow MDI Application. So how can i make a form as MDI child of the form which is already an MDI child. Thanks for ur support Inpreet Singh
You can't. A form cannot be an MDI Parent and Child at the same time. In other words, you have an MDI Parent that has children. None of those children can be an MDI Parent to another child form. You can't do this:
MDI Parent Form
|
+--->MDI Child Form
|
+--->MDI Child Form
|
+--->MDI Child/Parent Form <---Illegal!
|
+--->MDI Child Form
|
+--->MDI Child FormRageInTheMachine9532
-
Hello, I need to build an MDI application. After opening forms as MDI Child if I need to open further form from those MDIChild form it don't follow MDI Application. So how can i make a form as MDI child of the form which is already an MDI child. Thanks for ur support Inpreet Singh
I don't know a lot in this area, but couldn't you create your main parent, child and also another parent that is a copy of that child and make the child call the 2nd level parent?