Gets or sets the current multiple document interface (MDI) parent form of this form.
[Visual Basic] Public Property MDIParent As Form [C#] public Form MDIParent {get; set;} [C++] public: __property Form* get_MDIParent(); public: __property void set_MDIParent(Form*); [JScript] public function get MDIParent() : Form; public function set MDIParent(Form);
Exception Type | Condition |
---|---|
Exception | The Form assigned to this property is not marked as an MDI container. |
To create an MDI child form, assign the Form that will be the MDI parent form to the MDIParent property of the child form.
Form Class | Form Members | System.WinForms Namespace | IsMDIChild | IsMDIContainer | MDIChildren