C
C#2y ago
nut

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
Will
Will2y ago
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 method
KeysConverter Class (System.Windows.Forms)
Provides a TypeConverter to convert Keys objects to and from other representations.
nut
nut2y ago
ty