Click here to Skip to main content
15,913,408 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralMessage Closed Pin
30-Jan-10 21:47
vijay248230-Jan-10 21:47 
GeneralRe: Get number of characters in a string Pin
DaveAuld30-Jan-10 21:55
professionalDaveAuld30-Jan-10 21:55 
GeneralRe: Get number of characters in a string Pin
vijay248231-Jan-10 0:52
vijay248231-Jan-10 0:52 
GeneralRe: Get number of characters in a string Pin
DaveAuld31-Jan-10 1:15
professionalDaveAuld31-Jan-10 1:15 
AnswerRe: Get number of characters in a string [SOLVED] Pin
Ray Cassick1-Feb-10 10:58
Ray Cassick1-Feb-10 10:58 
Questionubstitute of keys press event Pin
pdnet30-Jan-10 3:02
pdnet30-Jan-10 3:02 
AnswerRe: ubstitute of keys press event Pin
DaveAuld30-Jan-10 4:54
professionalDaveAuld30-Jan-10 4:54 
AnswerRe: ubstitute of keys press event Pin
Dave Kreskowiak30-Jan-10 6:43
mveDave Kreskowiak30-Jan-10 6:43 
Since most of those devices are keyboard emulators anyway (normally refered to as "keyboard wedge") you cannot disable the keyboard. You would find it extremely difficult to tell the difference between a normal keyboard key and one coming from the scanner.

You normally would not even bother with the textbox but enable the forms KeyPreview property, then handle it's KeyDown event, looking for the prefix string that is prepended to the code coming from the scanner. You ARE using pre- and post-fix codes coming from the scanner, right? If not, you'll find it impossible to tell the difference between what it typed and what is scanned.

All of the characters you see after the prefix string will be whats scanned, until you see the postfix characters. When you see the prefix code, you do NOT pass the keystrokes up the chain to the textbox.


A guide to posting questions on CodeProject[^]



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




QuestionAdd Printer Driver Pin
Anubhava Dimri30-Jan-10 1:26
Anubhava Dimri30-Jan-10 1:26 
AnswerRe: Add Printer Driver Pin
Luc Pattyn30-Jan-10 1:56
sitebuilderLuc Pattyn30-Jan-10 1:56 
AnswerRe: Add Printer Driver Pin
Dave Kreskowiak30-Jan-10 6:37
mveDave Kreskowiak30-Jan-10 6:37 
QuestionHow to open new tab in Internet Explorer 7 using VBA (Excel) Pin
mprathore29-Jan-10 22:24
mprathore29-Jan-10 22:24 
QuestionRe: How to open new tab in Internet Explorer 7 using VBA (Excel) Pin
DaveAuld30-Jan-10 1:03
professionalDaveAuld30-Jan-10 1:03 
AnswerRe: How to open new tab in Internet Explorer 7 using VBA (Excel) Pin
mprathore31-Jan-10 5:56
mprathore31-Jan-10 5:56 
GeneralRe: How to open new tab in Internet Explorer 7 using VBA (Excel) Pin
DaveAuld31-Jan-10 8:03
professionalDaveAuld31-Jan-10 8:03 
QuestionCalling javascript function from VBscript Pin
Ash_VCPP29-Jan-10 21:34
Ash_VCPP29-Jan-10 21:34 
AnswerRe: Calling javascript function from VBscript Pin
Richard MacCutchan29-Jan-10 22:32
mveRichard MacCutchan29-Jan-10 22:32 
AnswerRe: Calling javascript function from VBscript Pin
Eddy Vluggen30-Jan-10 0:48
professionalEddy Vluggen30-Jan-10 0:48 
QuestionTcpListener problem Pin
AliAmjad29-Jan-10 20:50
AliAmjad29-Jan-10 20:50 
AnswerRe: TcpListener problem [modified] Pin
DaveAuld29-Jan-10 21:23
professionalDaveAuld29-Jan-10 21:23 
GeneralRe: TcpListener problem Pin
AliAmjad29-Jan-10 21:45
AliAmjad29-Jan-10 21:45 
AnswerRe: TcpListener problem Pin
DaveAuld29-Jan-10 22:04
professionalDaveAuld29-Jan-10 22:04 
AnswerRe: TcpListener problem Pin
Luc Pattyn30-Jan-10 2:02
sitebuilderLuc Pattyn30-Jan-10 2:02 
AnswerRe: TcpListener problem Pin
Dave Kreskowiak30-Jan-10 6:30
mveDave Kreskowiak30-Jan-10 6:30 
GeneralRe: TcpListener problem Pin
AliAmjad31-Jan-10 1:49
AliAmjad31-Jan-10 1:49 

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.