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

            base.RegisterHotKey();
        }
示例#2
0
 protected override void RegisterHotKey()
 {
     HotKeyRegister.Register(Keys.F1); // 定义热键数字键'F1'
     HotKeyRegister.Register(Keys.F2); // 定义热键数字键'F2'
     HotKeyRegister.Register(Keys.F3); // 定义热键数字键'F3'
     base.RegisterHotKey();
 }
示例#3
0
 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
 protected override void RegisterHotKey()
 {
     HotKeyRegister.Register(TabOrderManager.TabOrderKey);
     HotKeyRegister.Register(Keys.F10);
     base.RegisterHotKey();
 }
示例#5
0
 /// <summary>
 /// ×¢²áÈȼü
 /// </summary>
 protected virtual void RegisterHotKey()
 {
     HotKeyRegister.Register(Keys.Escape); // ×¢²áÈȼü'Esc'
 }