   ..net keydown event registering multiple times
  In my c# app, I need a callback to respond only when a key is first initially pressed. However for some reason, the "KeyDown" event seems to generated constantly while the key is held down and in this respect is acting just like the keypress event.All my google research seems to have found no one with this problem with their keydown event working as advertised in the sdk. I am wondering if there might be a reason for this? If not, then is there a way to disable buffered keyboard input in my application?   
  maybe put a variable which resets onkeyup and then in onkeydown put an if() statement testing the value of this variable?   ;  Eh? IIRC, the keydown event is 'as advertised' supposed to trigger multiple times. *doublechecks Petzold* Yes, that's expected behavior.   ;  As the others have said this is actually the correct behavior for the key down event in both .NET and Win32. To find out more specifics do a search on MSDN for OnKeyDown, OnKeyPress or KeyPressEventArgs.   ;  In Win32 you would check LPARAM for the keydown message to see if the key was pressed more than onced. But I'm not sure if this also pertains to C# Windows Programming. Hope it helps though.xeddiex   