last pressed key in a DataGrid or in a Form

H

Hamed

Hello

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

Thanks in advance

Hamed
 
D

Dave Sexton

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top