Form.LayoutMdi Method
.NET Framework 3.0
Arranges the multiple-document interface (MDI) child forms within the MDI parent form.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Assembly: System.Windows.Forms (in system.windows.forms.dll)
The following code example shows the event handlers for the menu items of a Window menu in an MDI application's parent form. Each event handler makes calls to the LayoutMdi method to arrange any child forms that are currently open in the application.
private: void HorizontallyTileMyWindows( Object^ sender, System::EventArgs^ e ) { // Tile all child forms horizontally. this->LayoutMdi( MdiLayout::TileHorizontal ); } void VerticallyTileMyWindows( Object^ sender, System::EventArgs^ e ) { // Tile all child forms vertically. this->LayoutMdi( MdiLayout::TileVertical ); } void CascadeMyWindows( Object^ sender, System::EventArgs^ e ) { // Cascade all MDI child windows. this->LayoutMdi( MdiLayout::Cascade ); }
public void HorizontallyTileMyWindows(Object sender, System.EventArgs e)
{
// Tile all child forms horizontally.
this.LayoutMdi(MdiLayout.TileHorizontal);
} //HorizontallyTileMyWindows
public void VerticallyTileMyWindows(Object sender, System.EventArgs e)
{
// Tile all child forms vertically.
this.LayoutMdi(MdiLayout.TileVertical);
} //VerticallyTileMyWindows
public void CascadeMyWindows(Object sender, System.EventArgs e)
{
// Cascade all MDI child windows.
this.LayoutMdi(MdiLayout.Cascade);
} //CascadeMyWindows
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: