Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hotkey to button in C# Windows application

Tags:

c#

How do i make a hotkey to button in C# Windows application

like image 866
Csharpist Avatar asked Mar 19 '10 01:03

Csharpist


People also ask

How use function keys for Button in C# Windows form?

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.

What is the shortcut key of central element?

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.


1 Answers

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.

like image 78
Jay Riggs Avatar answered Sep 18 '22 19:09

Jay Riggs