tags:

views:

36

answers:

2

I am writing a game where you need to click a button as many times as you can in 10 seconds. The problem is that it is possible to hold the Enter key down to superspeed the counter.

How can I prevent this? I tried KeyDown Events but it doesn't seem to fire when the key is held down.

Thanks.

+2  A: 

Use the MouseClick event as that only captures clicks by the mouse.

Albin Sunnanbo
Of course... Will give this a try. Thanks!
Christiaan Kruger
+1  A: 

try handling KeyPress instead of KeyDown.

tenfour