Export (0) Print
Expand All

MenuItem.MdiList Property

Gets or sets a value indicating whether the menu item will be populated with a list of the Multiple Document Interface (MDI) child windows that are displayed within the associated form.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public bool MdiList { get; set; }

Property Value

Type: System.Boolean
true if a list of the MDI child windows is displayed in this menu item; otherwise, false. The default is false.

When a menu item is selected to display an MDI child window list, the list is displayed as a submenu of the menu item. Only forms that are defined as MDI child forms are displayed in the window list. Only nine child windows can be displayed at a time. If there are more than nine child windows displayed, a "More Windows..." menu item is displayed at the end of the window list. Clicking this menu item displays a dialog box with a complete list of the child windows that are currently active.

The following code example creates a MenuItem that is used to display the list of currently open MDI child forms in an MDI form.


 public void SetMDIList()
 {
    // Create the MenuItem to be used to display an MDI list.
    MenuItem menuItem1 = new MenuItem();
    // Set this menu item to be used as an MDI list.
    menuItem1.MdiList = true;
 }



.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft