System.Windows.Forms.Form.IsMdiContainer Property

Gets or sets a value indicating whether the form is a container for multiple-document interface (MDI) child forms.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool IsMdiContainer { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property changes the display and behavior of the form to an MDI parent form. When this property is set to true, the form displays a sunken client area with a raised border. All MDI child forms assigned to the parent form are displayed within its client area.

When an MDI parent form is closed, the Form.Closing events of all MDI child forms are raised before the MDI parent form's Form.Closing event is raised. In addition, the Form.Closed events of all MDI child forms are raised before the Form.Closed event of the MDI parent form is raised.

Note:

If there are two System.Windows.Forms.MenuStrip controls on an MDI child form, setting Form.IsMdiContainer to true for the parent form merges the contents of only one of the System.Windows.Forms.MenuStrip controls. Use ToolStripManager.Merge(ToolStrip, string) to merge the contents of additional child System.Windows.Forms.MenuStrip controls on the MDI parent form.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0