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();
Loading
Jaish MathewsPosted May 10, 2010, 9:09 AM
MdiParent property need to set with a MDI form.
FormRecord FormToShow = new FormRecord(listBoxField_ID, listBoxField_Value);
FormToShow.MdiParent = this.MdiParent;
FormToShow.Show();
GustavoPosted May 10, 2010, 9:57 AM
YES... It worked... Thanks.
You gues are helping me so much. Thanks