public void UnregisterHotKeys() { //注销Id号为100的热键设定 HotKeysManager.UnregisterHotKey(Handle, 100); //注销Id号为101的热键设定 HotKeysManager.UnregisterHotKey(Handle, 101); }
private void labelTest_MouseLeave(object sender, EventArgs e) { //注销Id号为100的热键设定 HotKeysManager.UnregisterHotKey(Handle, 100); //注销Id号为101的热键设定 HotKeysManager.UnregisterHotKey(Handle, 101); }