Click here to Skip to main content
15,896,726 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
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 
AnswerRe: Thread on Multi-core Systems Pin
Luc Pattyn21-Feb-10 5:56
sitebuilderLuc Pattyn21-Feb-10 5:56 
AnswerRe: Thread on Multi-core Systems Pin
fat_boy28-May-10 21:59
fat_boy28-May-10 21:59 
QuestionAdaptec Gamebridge, Driver Modifications Needed Pin
Joshua Cobb20-Feb-10 21:19
Joshua Cobb20-Feb-10 21:19 
AnswerRe: Adaptec Gamebridge, Driver Modifications Needed Pin
Richard MacCutchan20-Feb-10 21:40
mveRichard MacCutchan20-Feb-10 21:40 
QuestionPCI Express x1 video card? Pin
dandy7217-Feb-10 11:48
dandy7217-Feb-10 11:48 
AnswerRe: PCI Express x1 video card? Pin
Dan Neely18-Feb-10 2:28
Dan Neely18-Feb-10 2:28 
GeneralRe: PCI Express x1 video card? Pin
dandy7218-Feb-10 15:53
dandy7218-Feb-10 15:53 
GeneralRe: PCI Express x1 video card? Pin
Dan Neely19-Feb-10 2:34
Dan Neely19-Feb-10 2:34 
GeneralRe: PCI Express x1 video card? Pin
Trollslayer25-Feb-10 12:51
mentorTrollslayer25-Feb-10 12:51 
GeneralRe: PCI Express x1 video card? Pin
Dan Neely26-Feb-10 2:20
Dan Neely26-Feb-10 2:20 

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.