private void Form1_Leave(object sender, EventArgs e) { HotKey.UnregisterHotKey(Handle, 102); }
private void Form1_Activated(object sender, EventArgs e) { HotKey.RegisterHotKey(Handle, 102, HotKey.KeyModifiers.Alt | HotKey.KeyModifiers.Ctrl, Keys.S); }