// Turn off the current active sub-window if (this.mdichildren.length> 0) {this.activemdichild.dispose ();} // close all child window for (int i = this.mdichildren.length; i> 0;) this .Mdichildren [- i] .dispose (); // Vertical That THISLYOUTMDI (MDILAYOUT.TILEVERTILAL); // Horizontal That THISLYOUTMDI (MDILAYOUT.TILEHORIZONTAL); // Window Stack this.Layoutmdi (mdilyout. Cascade);