Пример #1
0
 private void FrmFileSearcher_Deactivate(object sender, EventArgs e)
 {
     //注销Id号为101的热键设定
     WINAPI.UnregisterHotKey(Handle, 101);
 }
Пример #2
0
 private void FrmFileSearcher_Activated(object sender, EventArgs e)
 {
     //注册热键Ctrl+C,Id号为101。
     WINAPI.RegisterHotKey(Handle, 101, WINAPI.KeyModifiers.Ctrl, Keys.C);
 }