Is there a way to start a method in C# if a key is pressed? For example, Esc?
I am writing WinForms application. User fills the textbox and if he wants to delete everything, he just clicks esc key on keyboard
I think you need to handle the KeyDown event.