System.Windows.Forms.Form.MdiParent Property

Gets or sets the current multiple-document interface (MDI) parent form of this form.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public Form MdiParent { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

To create an MDI child form, assign the System.Windows.Forms.Form that will be the MDI parent form to the Form.MdiParent property of the child form. You can use this property from an MDI child form to obtain global information that all child forms need or to invoke methods that perform actions to all child forms.

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