Gets or sets a value indicating whether the menu item will be populated with a list of the MDI child windows that are displayed within the associated form.
[Visual Basic] Public Property MDIList As Boolean [C#] public bool MDIList {get; set;} [C++] public: __property bool get_MDIList(); public: __property void set_MDIList(bool); [JScript] public function get MDIList() : Boolean; public function set MDIList(Boolean);
true to display a list of the form's MDI child windows in this menu item; false if the menu item is to be displayed normally. 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 currently active.
The following example creates a MenuItem that will be used to display the list of currently open child forms in an MDI form.
[Visual Basic]
Public Sub SetMDIList() ' Create the MenuItem to be used to display an MDI list. Dim MenuItem1 as MenuItem Set MenuItem1 as New MenuItem() ' Set this menu item to be used as an MDI list. MenuItem1.MDIList = True End Sub
MenuItem Class | MenuItem Members | System.WinForms Namespace