MdiClient::ControlCollection::Add Method (Control^)
.NET Framework (current version)
Adds a control to the multiple-document interface (MDI) Container.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- value
-
Type:
System.Windows.Forms::Control^
MDI Child Form to add.
This child must be a Form that is marked as an MDI Child to be added to the container. You should not call this directly, but rather set the child form's (ctl) MDIParent property:
// incorrect Form child = new ChildForm(); this.getMdiClient().add(child); // correct Form child = new ChildForm(); child.setMdiParent(this);
.NET Framework
Available since 1.1
Available since 1.1
Show: