Detecting Key Presses

WinForms

Use the following code to detect a key press when focus is on a particular object.

Note: There is different syntax for WPF.

WPF

Non-Binding Method

Use the following code to detect a key press when focus is on a particular object.

Note: There is different syntax for WinForms.

Posted: May 31st, 2013 at 12:42 pm
Last Updated on: May 31st, 2013 at 12:49 pm