private void Form1_FormClosing(object sender, FormClosingEventArgs e) { HotKeyManager.UnregisterHotKey(thisWindow, 1); }