Closing an MDI Child Form
-
How can i tell what forms are currently open and how do i close a specific form? My main form is an MDI parent with a toolbar. One button opens a form and when i click another button, i want to close the one that's open, but i'm having a hard time finding out what is open and how to close it. Thanks for your help. .gonad.
-
How can i tell what forms are currently open and how do i close a specific form? My main form is an MDI parent with a toolbar. One button opens a form and when i click another button, i want to close the one that's open, but i'm having a hard time finding out what is open and how to close it. Thanks for your help. .gonad.
-
[ append from previous post ] the only way i know how to do this is:
this.MDIChildren[0].Close();
this works for me since i only want one form open at a time, but i just want to know if there's another way to do this. Thanks! .gonad.