I have interfaced a USB barcode scanner to a computer running VB6 software with Windows Xp as the OS. Normally people use Barcode scanner with serial port.
The USB barocde scanner is a Plug and Play device so wherever the cursor is placed it dumps the decoded value at the place of the cursor at a high speed.
I have written the code as:
Private Sub txtbarcode_Change()
Dim BARCODE As String
BARCODE = txtbarcode.Text
......(further processing of values)
End Sub
When I place a breakpoint on the first line and run the code, the first character gets dumped on the screen and the rest of the charcaters at the beginning of the first line.
What can be done to avoid this, If I use txtbarcode_Getfocus()..then the value stays on the display but no further processing is done.
We use MsComm while using the serial port..so is such kind of coding required for USB also..please help me out.