Keys shortcuts problem
-
Hi, I need to know how can I create shotcut to myButton on form when I press key F10 independent of current active control on form, without using "ShortcutKey" in "ToolStipMenuItem". I can do this if myButton is active control on form. I explicitly need to use key F10, so I can't use an & (ampersand) in a button text. Thanks for help
-
Hi, I need to know how can I create shotcut to myButton on form when I press key F10 independent of current active control on form, without using "ShortcutKey" in "ToolStipMenuItem". I can do this if myButton is active control on form. I explicitly need to use key F10, so I can't use an & (ampersand) in a button text. Thanks for help
handle key down or key up event of the form and then trigger click event by; if(e.KeyCode == Keys.F10) button1.PerformClick(); hope it helps.
Regards Khalid
-
handle key down or key up event of the form and then trigger click event by; if(e.KeyCode == Keys.F10) button1.PerformClick(); hope it helps.
Regards Khalid
-
Hello, Yes you can! if (e.Alt && e.KeyCode == Keys.F1) Hope it's not too late, but I didn't got your post. All the best, Martin