Click here to Skip to main content
15,899,679 members

Comments by Member 10804809 (Top 15 by date)

Member 10804809 15-Feb-17 7:22am View    
Finally I got this step.
I made textbox character length to 7 as every barcode contains 7 character and I put this code in TextChanged Event.

If A1TextBox.Text.Length = 7 Then
A2TextBox.Focus()

End If

So presently not having issue unless the barcode characters are changed.
Member 10804809 15-Feb-17 1:38am View    
My scanner mentioned on it."Laser version complies with 21CFR"
Does it seems any relation with the code?

When I scan the barcode with this scanner in Excel, it moves automatically to next row.
Member 10804809 15-Feb-17 1:32am View    
The length of the text in textbox may be 5 or 6 or 7 or 8.
So suppose I have A- of 7 character and B of 8 character.
So if I keep it 7 character length then it will capture 7 of A and 1 of B with remaining 7 in next textbox

Another thing how can I know the whether the scanner is having CR or LF or CR-LF?
Member 10804809 14-Feb-17 15:05pm View    
Another solution is inserting this code, but the no. in the textbox is always the same-

If A1TextBox.Text.Length = 8 Then
A2TextBox.Focus()

End If
Member 10804809 14-Feb-17 14:58pm View    
I got one hint to add Tab key at end of the scan.

How to add Tab key at the end of scan?

I went to this link: https://www.experts-exchange.com/questions/28391135/Scanned-Barcode-to-Visual-Basic-Textboxes-Change-Textbox-Focus-with-Javascript.html