コード例 #1
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     HotKeyManager.UnregisterHotKey(hotKeyHandler);
 }
コード例 #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     hotKeyHandler = HotKeyManager.RegisterHotKey(Keys.F, KeyModifiers.Shift | KeyModifiers.Windows);
     HotKeyManager.HotKeyPressed += new EventHandler <HotKeyEventArgs>(HotKeyManager_HotKeyPressed);
 }