コード例 #1
0
        protected override void RegisterHotKey()
        {
            HotKeyRegister.Register(Keys.F10);
            HotKeyRegister.Register(Keys.Enter);

            base.RegisterHotKey();
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: jobhesc/u9_jsdy
 protected override void RegisterHotKey()
 {
     HotKeyRegister.Register(Keys.F1); // 定义热键数字键'F1'
     HotKeyRegister.Register(Keys.F2); // 定义热键数字键'F2'
     HotKeyRegister.Register(Keys.F3); // 定义热键数字键'F3'
     base.RegisterHotKey();
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: gibachan/window-switcher
 private void MainForm_Load(object sender, EventArgs e)
 {
     if (HotKeyRegister.Register(this.Handle, (int)Keys.OemQuestion) == false)
     {
         Console.WriteLine("Error to register hotkey.");
     }
 }
コード例 #4
0
ファイル: LoginForm.cs プロジェクト: jobhesc/u9_jsdy
 protected override void RegisterHotKey()
 {
     HotKeyRegister.Register(TabOrderManager.TabOrderKey);
     HotKeyRegister.Register(Keys.F10);
     base.RegisterHotKey();
 }
コード例 #5
0
ファイル: BaseForm.cs プロジェクト: jobhesc/u9_jsdy
 /// <summary>
 /// ×¢²áÈȼü
 /// </summary>
 protected virtual void RegisterHotKey()
 {
     HotKeyRegister.Register(Keys.Escape); // ×¢²áÈȼü'Esc'
 }