Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

MDI child

I have an MDI parent form with 3 child forms(say child1,child2 and child 3). child1 and child2 are loaded when the mdi form loads.
I have a tree view control on child1. if i click a node in the tree, then i want the child3 to be loaded in place of child2. similarly i want to toggle the loading on clicking the nodes. ...Pls give me a clue for this

SS
Monday, April 11, 2005

Huh?

Sgt.Sausage
Wednesday, April 13, 2005

It doesn't sound like you really want to create a "true" MDI application. I would suggest using user controls and such and give up on making your forms MDI children. MDI is really supposed to be used for individual windows with no relationship that are controlled entirely by the user. Trying to programmatically control MDI forms is just going to lead to issues because the user will be able to circumvent your logic manually.

Use panels and user controls instead.

matt
Wednesday, April 13, 2005

*  Recent Topics

*  Fog Creek Home