Can anyone tell me the difference between the KeyDown
event, the KeyPress
event and the KeyUp
event? I checked the msdn site and it do
KeyDown: happens when the person presses a key (when the keyboard first detects a finger on a key, this happens when the key is pressed down).
KeyPress: happens when a key is pressed and then released.
KeyUp: happens when the key is released
You are right that all of these events occur when a key is pressed and then released, in the order I described above.