This documentation is archived and is not being maintained.

Form.RemoveOwnedForm Method

Removes an owned form from this form.

[Visual Basic]
Public Sub RemoveOwnedForm( _
   ByVal ownedForm As Form _
public void RemoveOwnedForm(
 Form ownedForm
public: void RemoveOwnedForm(
 Form* ownedForm
public function RemoveOwnedForm(
   ownedForm : Form


A Form representing the form to remove from the list of owned forms for this form.


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 a null reference (Nothing in Visual Basic).


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Form Class | Form Members | System.Windows.Forms Namespace | AddOwnedForm | Owner | OwnedForms