How do i make a hotkey to button in C# Windows application
Set the button's UseMnemonic property to true and add an ampersand (&) just before the letter in the button's Text property you want to use for the hotkey. The user would press Alt + to activate the hotkey.
In MS Word Ctrl + E is the shortcut key to “Centre Align” the selected text. In MS Word Ctrl + F is the shortcut key for find command. In MS Word Ctrl + x is the shortcut key for cut command.
Set the button's UseMnemonic property to true and add an ampersand (&) just before the letter in the button's Text property you want to use for the hotkey.
The user would press Alt + to activate the hotkey.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With