To build MDI application
-
Hi, I want to build MDI Application. I got success in 1st level of MDIChild forms now the problem is that if these MDI child form open new forms those forms cannot be included as MDI child becoz those are child forms of the MDI child form. So could u plz tell me how to proceed in this, to build an application in which all forms as child forms of the main MDI form. or is there any other wayout. Thanks for ur support. Inpreet Singh
-
Hi, I want to build MDI Application. I got success in 1st level of MDIChild forms now the problem is that if these MDI child form open new forms those forms cannot be included as MDI child becoz those are child forms of the MDI child form. So could u plz tell me how to proceed in this, to build an application in which all forms as child forms of the main MDI form. or is there any other wayout. Thanks for ur support. Inpreet Singh
If you want a child form to launch another child form, try this in your child form:
Dim newChild As New ChildForm2
newChild.MdiParent = Me.MdiParent
I haven't tested this method so I couldn't tell you if it works or not. Also, if you have any tracking code in your MDI Parent for tracking various aspects of your children, that code isn't going to work anymore. RageInTheMachine9532
-
If you want a child form to launch another child form, try this in your child form:
Dim newChild As New ChildForm2
newChild.MdiParent = Me.MdiParent
I haven't tested this method so I couldn't tell you if it works or not. Also, if you have any tracking code in your MDI Parent for tracking various aspects of your children, that code isn't going to work anymore. RageInTheMachine9532
Hello Sir, As MDIChild cannot be again MDI Parent that why i cannot run this code. There must be some other wayout to include 2nd level or further level forms into as main MDI Child form. Inpreet Singh
-
Hi, I want to build MDI Application. I got success in 1st level of MDIChild forms now the problem is that if these MDI child form open new forms those forms cannot be included as MDI child becoz those are child forms of the MDI child form. So could u plz tell me how to proceed in this, to build an application in which all forms as child forms of the main MDI form. or is there any other wayout. Thanks for ur support. Inpreet Singh
This is the THIRD time you've asked this, and with the first two times several people told you that the .NET Framework - and the Windows Management APIs that they encapsulate - do not support this. You'll have to create your own window management APIs in .NET in order to do this, so please quit asking how to use the MDI support in .NET because it will not work.
Microsoft MVP, Visual C# My Articles
-
Hello Sir, As MDIChild cannot be again MDI Parent that why i cannot run this code. There must be some other wayout to include 2nd level or further level forms into as main MDI Child form. Inpreet Singh
How many times do we have to tell you that WINDOWS DOES NOT SUPPORT THIS! Rethink your design because it's not going to happen! Unless you want to write your own Window Manager and Window Classes! Good Luck! RageInTheMachine9532