473,795 Members | 3,279 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7143
"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...@free net.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
3506
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 the previous/next command typed. I saw code in the web to detect arrow keys in which I have to first put the terminal into 'cbreak' mode for getting each charcter. And the echo is turned off. Though I am able to detect the key, since the at
4
5780
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
1
3336
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. So, I'd like to be able to navigate it like one when using the up/down/left/right arrow keys of the keyboard. I have the fields set with tab stop settings so that hitting the tab key moves one field to the right. The problem I'm having is when I...
1
4274
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 and left arrow to move to the next or previous tab control. DoCmd.GotoRecord,,AcNext does the business for down, but nowhere can I find a 'docmd go to next tab' or words to that effect!!! Any ideas?
7
2820
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 key is pressed. In other words, I would like to know how to access the keyboard's scan lines, so that if, for example, the user is holding two of the arrow keys pressed simultaneously, I will get a continuously changing response of...
2
8114
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 the code into a user control, put it on the form. Now I don't get keydown events when I press an arrow key - on either the form or the usercontrol ?!!!? I suspect somehow the container fucntionality has decided that they are was of migrating...
6
1934
by: Nathan | last post by:
How can I detect when one of the arrow keys is pressed? Thanks, Nathan
10
7180
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 ProcessDialogKey(ByVal keyData As Keys) As Boolean MyBase.ProcessDialogKey(keyData)
1
1882
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 direction and advice would be greatly appreciated, Thank You, Rodney
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6779
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.