Example #1
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            WindowsShell.UnregisterHotKey(this);

            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
Example #2
0
 private void MainClass_FormClosing(object sender, FormClosingEventArgs e)
 {
     WindowsShell.UnregisterHotKey(this);
 }