Num Lock affects e.Keycode

  • Thread starter Thread starter Paul Nathan
  • Start date Start date
P

Paul Nathan

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?
 
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
 
Back
Top