I'm actually developing a small application which reads the isbn from a barcode scanner and then it finds out all other data for the book which has that ISBN.
I've recently got a bar code scanner which gets the data as if I am typing on the keyboard. For example if I set the focus on a textbox and then I scann an ISBN image then the ISBN is written on the texbox one character at a time.
Everything is Ok at this point. The problem is:
I want to know when the device has finished reading the ISBN so that I can proceed doing other operations that I need. I've set the TextBox1_TextChanged event but it triggers every time the device reads a character(similar to the keyboard) and I can't recognize if the text in the textbox is the entire ISBN or just a part of it.
Has anyone else faced this before? Maybe I should use timers?
Thank you
Besa84 Tuesday, September 04, 2007 1:15 PM
Take a look at your scanner's documentation. Surely you'll find a barcode that you can scan to configure the scanner to send you a CR/LF (or some other character) at the end of scan or to wrap the scanned text between <STX><ETX>. Then you can look for the presence of that char to trigger your processing.
eperales Tuesday, September 04, 2007 3:10 PM
well of course it will trigger it. Why do you need to place your code in that event? why not implement a keypress event or a button to perform the code you want to after reading the ISBN?
ahmedilyas Tuesday, September 04, 2007 3:03 PM
Take a look at your scanner's documentation. Surely you'll find a barcode that you can scan to configure the scanner to send you a CR/LF (or some other character) at the end of scan or to wrap the scanned text between <STX><ETX>. Then you can look for the presence of that char to trigger your processing.