472,333 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Num Lock affects e.Keycode

Further to my post about keyboard problems, I have
discovered that Num Lock seems to change the e.keycode
for the arrow keys and the 9 above them excluding scroll
lock and pause-break. With Num Lock on, the arrow keys
return an e.KeyCode of 'None'. With Num Lock off, the
program fails to see them, BUT, some of my programs
register them correctly???!! Is this a Win XP driver
problem, a hardware fault, or a .NET framework reinstall
job?
Nov 22 '05 #1
1 2892
Paul,
Charles Petzold has a lengthy chapter on the keyboard in his book
"Programming Microsoft Windows with Microsoft Visual Basic .NET" from MS
Press (a C# version is available). Not sure if it will help you or not.

Remember those keys do change identity based on numlock & shift, this is at
the device/bios/keyboard level.

I'm not seeing any e.KeyCode = None on VS.NET 2003, XP Pro.

Hope this helps
Jay

"Paul Nathan" <kh***@btinternet.com> wrote in message
news:5c****************************@phx.gbl...
Further to my post about keyboard problems, I have
discovered that Num Lock seems to change the e.keycode
for the arrow keys and the 9 above them excluding scroll
lock and pause-break. With Num Lock on, the arrow keys
return an e.KeyCode of 'None'. With Num Lock off, the
program fails to see them, BUT, some of my programs
register them correctly???!! Is this a Win XP driver
problem, a hardware fault, or a .NET framework reinstall
job?

Nov 22 '05 #2

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

Similar topics

25
by: Sune A | last post by:
Hi All! I'm having problems with www.suneworld.com The thing is that I'd like to lock the width of the page, so that it won't adjust...
18
by: Robert | last post by:
Hi! I was wondering if the was any way to determine the state of the caps lock key, on or off. Of course I can capture the key events and see...
8
by: Mark A | last post by:
The DB2 8.2 SQL Reference says SET CURRENT LOCK TIMEOUT is not under transaction control. I assume that means that changing it via the SQL command...
3
by: Mike L | last post by:
How do I turn Caps Lock on, when my form opens?
1
by: Doug Bell | last post by:
Hi, Can you lock the colum in a datagrid so that it can not be resized by th user? Thanks Doug
1
by: yxq | last post by:
Hello, I have a main form, there other some controls(i.e. textbox) in the form. I want to detect whether Caps Lock key is pressed in form-key...
0
by: Hugh Janus | last post by:
Hi all, There are hundreds of posts on usenet to do something similar to what I want but either they do not work or are no good for me. Here is...
3
by: Pugi! | last post by:
I got this (piece of) script from 'DHTML Utopia - Modern Webdesign - Using Javascript & DOM'. function aKeyWasPressed(e) { if (window.event) {...
2
by: Gidi | last post by:
Hi, How can I check if the caps lock is turned on\off ? example will be appreciated... Thanks, Gidi
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.