System.Windows.Forms.Form.RemoveOwnedForm C# (CSharp) Method

RemoveOwnedForm() public method

public RemoveOwnedForm ( Form ownedForm ) : void
ownedForm Form
return void
		public void RemoveOwnedForm(Form ownedForm) {
			owned_forms.Remove(ownedForm);
		}

Usage Example

Example #1
0
 internal void invokeClose()
 {
     try {
     } finally {
         mPopup._form.Close();
         mPopup._form = null;
         if (mPopup._owner != null)
         {
             System.Windows.Forms.Form pForm = mPopup._owner.FindForm();
             if (pForm != null)
             {
                 pForm.RemoveOwnedForm(this);
             }
         }
         else
         {
             if (mPopup._control != null)
             {
                 System.Windows.Forms.Form pForm = mPopup._control.FindForm();
                 if (pForm != null)
                 {
                     pForm.RemoveOwnedForm(this);
                 }
             }
         }
     }
 }
All Usage Examples Of System.Windows.Forms.Form::RemoveOwnedForm
Form