Edit

Bagikan melalui


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);
public void RemoveOwnedForm (System.Windows.Forms.Form? ownedForm);
member this.RemoveOwnedForm : System.Windows.Forms.Form -> unit
Public Sub RemoveOwnedForm (ownedForm As Form)

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

See also