Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using the New keyword Pin
PIEBALDconsult13-May-09 3:21
mvePIEBALDconsult13-May-09 3:21 
GeneralRe: Using the New keyword Pin
Mycroft Holmes12-May-09 19:09
professionalMycroft Holmes12-May-09 19:09 
GeneralRe: Using the New keyword Pin
Luc Pattyn12-May-09 23:58
sitebuilderLuc Pattyn12-May-09 23:58 
QuestionRetrieving USB Barcode scanner data... Pin
Jacob Dixon12-May-09 14:58
Jacob Dixon12-May-09 14:58 
AnswerRe: Retrieving USB Barcode scanner data... Pin
Mycroft Holmes12-May-09 15:28
professionalMycroft Holmes12-May-09 15:28 
GeneralRe: Retrieving USB Barcode scanner data... Pin
Jacob Dixon12-May-09 15:54
Jacob Dixon12-May-09 15:54 
GeneralRe: Retrieving USB Barcode scanner data... Pin
Luc Pattyn12-May-09 17:12
sitebuilderLuc Pattyn12-May-09 17:12 
AnswerRe: Retrieving USB Barcode scanner data... Pin
Dave Kreskowiak12-May-09 17:19
mveDave Kreskowiak12-May-09 17:19 
Anny decent scanner will let you setup pre- and post-fix character(s) it should add to the barcode when it's scanned. Handle the Form's Keydown event (remember to turn on the Form's KeyPreview!) and you can look for the pre-fix character(s) before any control on your form gets the keystrokes comming from the scanner. If you see the pre-fix character(s), start recording every keystroke until you get the post-fix character(s). Remember to set the e.Handled flag to True while you're seeing the characters you want, including pre-fix, data, and post-fix. When you see the post-fix character(s), you've got your barcode!

You may also want to put some kind of a timeout in this algorithm somewhere so you're not infinitely waiting for post-fix characters you may never see because of some failure of the scanner.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Retrieving USB Barcode scanner data... Pin
Mycroft Holmes12-May-09 19:07
professionalMycroft Holmes12-May-09 19:07 
GeneralRe: Retrieving USB Barcode scanner data... Pin
Jacob Dixon13-May-09 3:06
Jacob Dixon13-May-09 3:06 
AnswerRe: Retrieving USB Barcode scanner data... Pin
cackharot27-May-09 15:03
cackharot27-May-09 15:03 
GeneralRe: Retrieving USB Barcode scanner data... Pin
Jacob Dixon28-May-09 4:17
Jacob Dixon28-May-09 4:17 
QuestionSending file via TCP protocol Pin
nike_arh12-May-09 10:31
nike_arh12-May-09 10:31 
AnswerRe: Sending file via TCP protocol Pin
Luc Pattyn12-May-09 14:11
sitebuilderLuc Pattyn12-May-09 14:11 
GeneralRe: Sending file via TCP protocol Pin
nike_arh12-May-09 23:35
nike_arh12-May-09 23:35 
GeneralRe: Sending file via TCP protocol Pin
Luc Pattyn13-May-09 0:03
sitebuilderLuc Pattyn13-May-09 0:03 
QuestionCurious Question about ProgressBar object between two classes Pin
Blubbo12-May-09 9:52
Blubbo12-May-09 9:52 
AnswerRe: Curious Question about ProgressBar object between two classes Pin
Christian Graus12-May-09 10:00
protectorChristian Graus12-May-09 10:00 
GeneralRe: Curious Question about ProgressBar object between two classes Pin
Blubbo13-May-09 2:19
Blubbo13-May-09 2:19 
QuestionConverting between types inside Lambda Expressions Pin
Andre Vianna12-May-09 8:59
Andre Vianna12-May-09 8:59 
QuestionDraw railway using Graphics GDI+ Pin
baranils12-May-09 8:49
baranils12-May-09 8:49 
AnswerRe: Draw railway using Graphics GDI+ Pin
Christian Graus12-May-09 9:14
protectorChristian Graus12-May-09 9:14 
GeneralRe: Draw railway using Graphics GDI+ Pin
baranils12-May-09 9:42
baranils12-May-09 9:42 
GeneralRe: Draw railway using Graphics GDI+ Pin
Christian Graus12-May-09 10:00
protectorChristian Graus12-May-09 10:00 
AnswerRe: Draw railway using Graphics GDI+ Pin
Mark Churchill12-May-09 18:27
Mark Churchill12-May-09 18:27 

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.