protected override void RegisterHotKey() { HotKeyRegister.Register(Keys.F10); HotKeyRegister.Register(Keys.Enter); base.RegisterHotKey(); }
protected override void RegisterHotKey() { HotKeyRegister.Register(Keys.F1); // 定义热键数字键'F1' HotKeyRegister.Register(Keys.F2); // 定义热键数字键'F2' HotKeyRegister.Register(Keys.F3); // 定义热键数字键'F3' base.RegisterHotKey(); }
private void MainForm_Load(object sender, EventArgs e) { if (HotKeyRegister.Register(this.Handle, (int)Keys.OemQuestion) == false) { Console.WriteLine("Error to register hotkey."); } }
protected override void RegisterHotKey() { HotKeyRegister.Register(TabOrderManager.TabOrderKey); HotKeyRegister.Register(Keys.F10); base.RegisterHotKey(); }
/// <summary> /// ×¢²áÈȼü /// </summary> protected virtual void RegisterHotKey() { HotKeyRegister.Register(Keys.Escape); // ×¢²áÈȼü'Esc' }