Click here to Skip to main content
15,920,508 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
AnswerRe: Sick HDD Pin
Jörgen Andersson5-Mar-10 4:11
professionalJörgen Andersson5-Mar-10 4:11 
GeneralRe: Sick HDD Pin
David Crow5-Mar-10 4:40
David Crow5-Mar-10 4:40 
GeneralRe: Sick HDD Pin
Dan Neely5-Mar-10 4:57
Dan Neely5-Mar-10 4:57 
GeneralRe: Sick HDD Pin
Jörgen Andersson5-Mar-10 4:58
professionalJörgen Andersson5-Mar-10 4:58 
QuestionDevice Driver Update Pin
Eyo14-Mar-10 2:45
Eyo14-Mar-10 2:45 
QuestionPC that seems to be dead but... it has been due to a software with a virus or similar... Pin
Joan M3-Mar-10 7:29
professionalJoan M3-Mar-10 7:29 
AnswerRe: PC that seems to be dead but... it has been due to a software with a virus or similar... Pin
Dave Kreskowiak3-Mar-10 8:41
mveDave Kreskowiak3-Mar-10 8:41 
QuestionHow to discover a directly connected device Pin
deviao25-Feb-10 6:42
deviao25-Feb-10 6:42 
AnswerRe: How to discover a directly connected device Pin
Michel Godfroid1-Apr-10 7:00
Michel Godfroid1-Apr-10 7:00 
GeneralRe: How to discover a directly connected device Pin
deviao1-Apr-10 10:12
deviao1-Apr-10 10:12 
QuestionController RAID Intel and windows xp, problem with installation Pin
dift24-Feb-10 20:38
dift24-Feb-10 20:38 
AnswerRe: Controller RAID Intel and windows xp, problem with installation Pin
fat_boy29-Apr-10 23:24
fat_boy29-Apr-10 23:24 
QuestionCisco Call Manager demo license Pin
Steve Holdorf24-Feb-10 10:51
Steve Holdorf24-Feb-10 10:51 
QuestionWebcam requirements for Facial Recognition? Pin
Etienne_12323-Feb-10 7:19
Etienne_12323-Feb-10 7:19 
AnswerRe: Webcam requirements for Facial Recognition? Pin
Jörgen Andersson23-Feb-10 10:04
professionalJörgen Andersson23-Feb-10 10:04 
GeneralRe: Webcam requirements for Facial Recognition? Pin
Etienne_12325-Feb-10 10:52
Etienne_12325-Feb-10 10:52 
QuestionBarcode Reader: How to disable the key board? Pin
Xiangyang Liu 刘向阳21-Feb-10 16:46
Xiangyang Liu 刘向阳21-Feb-10 16:46 
AnswerRe: Barcode Reader: How to disable the key board? Pin
Dave Kreskowiak22-Feb-10 2:54
mveDave Kreskowiak22-Feb-10 2:54 
Xiangyang Liu 刘向阳 wrote:
How do I disable only the real keyboard and keep the barcode scanner working?


If your keyboard and scanner is USB based, then look into USB methods for disabling the keyboard. Warning! This will NOT be a simple call to a function to turn it on and off. You'll have to use the Setup API to do this. And frankly, this is a bad solution to the problem because this will turn the keyboard off for the entire system, not just your app. Now, what if your app crashes, or something else happens, after you turn off the keyboard, but before you turn it back on?? Not a good place to be...

How on earth are your users hitting the keyboard in the middle of a scan code that only takes a fraction of a second to show up??

You do not have to have users put the cursor in the correct box if your scanner supports (most do) prefixing and postfixing start and stop sequences to the scanned code. Your form code (with KeyPreview turned on) should look at each keystroke, looking for the prefix characters. If it's not part of the sequence, the keystroke gets passed on to the control it's destined for. If so, start looking for the stop code, but adding each character not part of the code to a string, until you see the stop code. These keystrokes do not get passed on to the destination code. Now you've got the code without having to use a TextBox. For the barcodes I was using, this normally took less than a tenth of a second.

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: Barcode Reader: How to disable the key board? Pin
Xiangyang Liu 刘向阳22-Feb-10 5:07
Xiangyang Liu 刘向阳22-Feb-10 5:07 
GeneralRe: Barcode Reader: How to disable the key board? Pin
Jörgen Andersson22-Feb-10 9:21
professionalJörgen Andersson22-Feb-10 9:21 
GeneralRe: Barcode Reader: How to disable the key board? Pin
Xiangyang Liu 刘向阳23-Feb-10 2:08
Xiangyang Liu 刘向阳23-Feb-10 2:08 
AnswerRe: Barcode Reader: How to disable the key board? Pin
Randor 24-Feb-10 18:36
professional Randor 24-Feb-10 18:36 
GeneralRe: Barcode Reader: How to disable the key board? Pin
Jörgen Andersson25-Feb-10 6:18
professionalJörgen Andersson25-Feb-10 6:18 
AnswerRe: Barcode Reader: How to disable the key board? Pin
Trollslayer25-Feb-10 12:49
mentorTrollslayer25-Feb-10 12:49 
QuestionThread on Multi-core Systems Pin
Ofer Gross21-Feb-10 5:37
Ofer Gross21-Feb-10 5:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.