CustomFunctionUI.WatermarkFunctionUIForm.Dispose C# (CSharp) Method

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

Usage Example

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