Maybe something like this can help you
Form frmToCreate; String strClassName=typeof(FormToCreate).Name frmToCreate = GetForm(strClass); if(frmToCreate == null) {
where getform will be something like this
public Form GetForm(String type) { int i; Form[] children = this.MdiChildren; //or mdiwindow.MdiChildren for (i = 0; i < children.Length; i++) { if (children[i].GetType().Name == type) { return children[i]; } } return null; }
If you are just playing with the MdiChildren property.
source share