Form.RemoveOwnedForm(Form) Method

Definition

Removes an owned form from this form.

public void RemoveOwnedForm (System.Windows.Forms.Form ownedForm);
public void RemoveOwnedForm (System.Windows.Forms.Form? ownedForm);

Parameters

ownedForm
Form

A 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 RemoveOwnedForm 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.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also