Select Hotkey Component Winforms
How can i have a sort of "select hotkey" component that lets the user press a key and captures the Keys enum value?
2 Replies
https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.keysconverter?view=windowsdesktop-7.0
you can capture the key(s) in the KeyDown event, and display it in the textbox with the
KeysConverter
ConvertToString
methodKeysConverter Class (System.Windows.Forms)
Provides a TypeConverter to convert Keys objects to and from other representations.
ty