System.Windows.Forms.Form.RemoveOwnedForm Method

Removes an owned form from this form.

Syntax

public void RemoveOwnedForm (Form ownedForm)

Parameters

ownedForm
A System.Windows.Forms.Form representing the form to remove from the list of owned forms for this form.

Remarks

The form assigned to the owner form remains owned until the Form.RemoveOwnedForm(Form) method is called. In addition to removing the owned form from the list of owned form, this method also sets the owner form to null.

Requirements

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