NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Form.ParentForm

The form that is the visual parent of this form.

[Visual Basic]
Overridable Public ReadOnly Property ParentForm As Form
[C#]
public Form ParentForm {override get;}
[C++]
public: __property virtual Form* get_ParentForm();
[JScript]
public function get ParentForm() : Form;

Property Value

A Form that represents the form that is hosting the current form within its client area.

Remarks

A parented form is displayed within the client area of a another form. Unlike a multiple document interface (MDI) child form, a paranted form does not have the features such as merged menus or the ability to cascade or tile the parented forms. To parent a form within another form, use the System.WinForms.Control.Add method.

A parented form can be used as tool windows or complex toolboxes within your applications.

Note   In order to parent a form to another the form being parented must have its TopLevel property set to false.

See Also

Form Class | Form Members | System.WinForms Namespace | TopLevel