/// <summary> /// Shut down the form and destroy the object. /// </summary> public void Deactivate() { myForm.Close(); myForm.Dispose(); myForm = null; }