Hello:
I have a MDIParent that opens a MDIChild and it works fine. Now I need the MDIChild open another form and open it into the MDIParent. I tried the following code and I get an error. When I comment the error line, it does show the form but its not in the MDIParent. What am I missing?
FormRecord FormToShow = new FormRecord(listBoxField_ID, listBoxField_Value);
//FormToShow.MdiParent = this; // <<< ERROR
FormToShow.Show();
How Do I: Have a MDIChild open another MDIChild in the MDIParent?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaish MathewsRank #225 · 11K reputationPosted May 10, 2010, 5:09 AM EDT
MdiParent property need to set with a MDI form.
FormRecord FormToShow = new FormRecord(listBoxField_ID, listBoxField_Value);
FormToShow.MdiParent = this.MdiParent;
FormToShow.Show();
GustavoRank #1,990 · 732 reputationPosted May 10, 2010, 5:57 AM EDT
YES... It worked... Thanks.
You gues are helping me so much. Thanks