PC Review


Reply
Thread Tools Rate Thread

How do I recognize characters on the 10-key?

 
 
OC
Guest
Posts: n/a
 
      23rd Feb 2004
I am attempting to trap special keys on the keypad for a high-speed
dataentry application. It MOSTLY works, however it does not work on every
computer. IOW, Keys.Divide, Keys.Multiply, and Keys.Subtract do not always
fire on some machines and I don't see an OEM equivilent for these.

I am using the following format:

private bool HandleKeys(Keys keyCode)
{
bool ret = false;
switch (keyCode)
{
case Keys.Enter: ret = EnterKeyPressed(); break;
case Keys.Add: ret = AddKeyPressed(); break;
case Keys.F1: ret = F1KeyPressed(); break;
case Keys.F2: ret = F2KeyPressed(); break;
case Keys.Divide: // used by ten-key data entry
case Keys.F3: ret = F3KeyPressed(); break;
case Keys.F4: ret = F4KeyPressed(); break;
case Keys.F5: ret = F5KeyPressed(); break;
case Keys.Multiply: // used by ten-key data entry
case Keys.F6: ret = F6KeyPressed(); break;
case Keys.F7: ret = F7KeyPressed(); break;
case Keys.F8: ret = F8KeyPressed(); break;
case Keys.Subtract: // used by ten-key data entry
case Keys.F9: ret = F9KeyPressed(); break;
case Keys.F10: ret = F10KeyPressed(); break;
case Keys.F11: ret = F11KeyPressed(); break;
case Keys.F12: ret = F12KeyPressed(); break;
default: ret = false; break;
}
return ret;


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: IE 6 windows shows characters fuzzy, not clean lined characters =?Utf-8?B?UGFsYWRvbg==?= Windows XP Internet Explorer 0 11th Feb 2007 06:18 PM
Re: IE 6 windows shows characters fuzzy, not clean lined characters Frank Saunders, MS-MVP OE/WM Windows XP Internet Explorer 0 21st Jan 2007 12:23 PM
RE: IE 6 windows shows characters fuzzy, not clean lined characters =?Utf-8?B?bmFzcw==?= Windows XP Internet Explorer 0 20th Jan 2007 08:06 PM
How do I recognize space characters in keyboard input? steve bull Microsoft C# .NET 2 21st Jun 2005 08:40 AM
In Windows XP MS-DOS does not recognize batch file greater than 8 characters Usman Windows XP Performance 0 10th Jul 2003 11:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:17 PM.