469,626 Members | 1,167 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

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 2782
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

25 posts views Thread by Sune A | last post: by
18 posts views Thread by Robert | last post: by
8 posts views Thread by Mark A | last post: by
3 posts views Thread by Mike L | last post: by
1 post views Thread by Doug Bell | last post: by
reply views Thread by Hugh Janus | last post: by
2 posts views Thread by Gidi | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.