What is the difference between the KeyCode and KeyData properties on the .NET WinForms key event argument objects?

KeyCode is an enumeration that represents all the possible keys on the keyboard. KeyData is the KeyCode combined with the modifiers (Ctrl, Alt and/or Shift).

Use KeyCode when you don’t care about the modifiers, KeyData when you do.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)