Detecting Up, down, right, left arrow keys, how?

R

Robert Dufour

In Vs 2005 Vb.Net How do you detcet the arrow keys, the function keys, the
Ctrl Key, The shift key, the PrintScreen key, scroll lock key NumLock key. I
know how to detect the keys that return ascii chararcters but these do not
seem to. So how do youn detect when they have been pressed?

Thanks for any help

Bob
 
A

Armin Zingler

Robert Dufour said:
In Vs 2005 Vb.Net How do you detcet the arrow keys, the function
keys, the Ctrl Key, The shift key, the PrintScreen key, scroll lock
key NumLock key. I know how to detect the keys that return ascii
chararcters but these do not seem to. So how do youn detect when
they have been pressed?

Thanks for any help

Handle the KeyDown event.

The PrintScreen key is a system key that does not generate a KeyDown event.


Armin
 

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