Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top