Exemplo n.º 1
0
        protected override void RegisterHotKey()
        {
            HotKeyRegister.Register(Keys.F10);
            HotKeyRegister.Register(Keys.Enter);

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