Form.RemoveOwnedForm(Form) Form.RemoveOwnedForm(Form) Form.RemoveOwnedForm(Form) Form.RemoveOwnedForm(Form) Method

定义

从此窗体移除附属窗体。Removes an owned form from this form.

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)

参数

ownedForm
Form Form Form Form

Form,表示要从此窗体的附属窗体列表中移除的窗体。A Form representing the form to remove from the list of owned forms for this form.

注解

分配给所有者窗体的窗体在调用RemoveOwnedForm方法前一直保持为拥有窗体。The form assigned to the owner form remains owned until the RemoveOwnedForm method is called. 除了从拥有的窗体列表中移除附属窗体外,此方法还会将所有者窗体null设置为。In addition to removing the owned form from the list of owned form, this method also sets the owner form to null.

适用于

另请参阅