Question

I'm looking for a form element in C# like the THotKey in Delphi
It looks like a TextBox but it's input is a keystroke, instead text.

I don't really know how to explain it so here are some visual examples:

enter image description here

enter image description here
Basically, it catches the key press or key combo.

Does such element already exist in C#?
Or do I have to make it myself out of TextBox?

Était-ce utile?

La solution

AFAIK Framework doesn't provide one. Take a look at this Article in CodeProject. I have used it sometime before.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top