473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
Aug 3 '07 #1
2 7124
"Robert Dufour" <bd*****@sgiims.comschrieb
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

Aug 3 '07 #2
On 3 Ago, 19:12, "Armin Zingler" <az.nos...@freenet.dewrote:
"Robert Dufour" <bduf...@sgiims.comschrieb
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.

here:
http://groups.google.it/group/micros...8c80f49e4026d9
or simply SendKeys.Send("%{PRTSC}") to fill the keyb
Tom

>
Armin

Aug 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Pratap Das | last post by:
Hi All, I am writing sort of a shell in Perl where I am trying to implement command recall at shell prompt like you have for zsh/tcsh. So when I press up/down arrow keys I should be able to get...
4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
1
by: Richard Coutts | last post by:
I have a Continous Form with 5 or so fields for each record, in a line from left to right. Because the Contuous Form lists several records at once, the form looks pretty much like a Datasheet. ...
1
by: John M | last post by:
Hi, In recently recieved some excellent advice which ebnabled me to make a form behave as a spreadsheet with respect to the down and up arrow keys. To develop this further I would like the right...
7
by: kstahl | last post by:
Howdy, I would like to get down to the nitty-gritty of the keyboard's operation. Specifically, I would like to poll only a few keys on the keyboard, and I would like to know when more than one...
2
by: Darren Oakey | last post by:
ok - the problem - I made a simple breakout game out of a form, just painting the background - and using keydown for left and right arrow keys to control the bat - worked fine. I then moved all...
6
by: Nathan | last post by:
How can I detect when one of the arrow keys is pressed? Thanks, Nathan
10
by: Bob | last post by:
Hello: I'm tring to make the down arrow act as a tab key and the up arrow act as like (-TAB.). I have this for the down arrow but nothing happens. Protected Overrides Function...
1
by: jitrowia | last post by:
I was wondering what kind of python code I would need to enable me to use the up and down, left and right arrow keys to control software programming decisions within a Python Program. Any...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.