last pressed key in a DataGrid or in a Form

  • Thread starter Thread starter Hamed
  • Start date Start date
H

Hamed

Hello

How can I identify what was the last pressed key in a DataGrid or in a Form?

Thanks in advance

Hamed
 
Hi,

Have you tried handling the KeyPress event and assigning the KeyCode to a variable?

The last key pressed is the current value in your variable, whenever your code attempts to read it.
 
Back
Top