Question

I want to get response from Form while pressed and holding a key,how do I do that ? I wrote code for 'OnKeyDown' but that works only once per press/

Était-ce utile?

La solution

You want OnKeyPress, not OnKeyDown.

KeyPress will continue to trigger as long as you hold the key down.

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