|
-
Sep 1st, 2000, 08:46 AM
#1
Thread Starter
Lively Member
I have created a form with a text box named txtpart. There is no problem with the program if users enter data into this text box using a standard keyboard. However if they used a scanner to scan in a barcode and hit the <enter> key on the keyboard, this program terminate itself and returned to window!
I have noticed that after scanning data into this text box, I need to use the mouse to move the hair-line cursor from its leftmost position inside the text box to the position after the last character. If I hit the <enter> key now, my program works fine!
How can I control the cursor movement? I thought the cusror should automatically station itself at the end of the data after each scan??
Private Sub Txtpart_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(KeyAscii)))
If KeyAscii = 13 Then
find_part
End If
End Sub
-
Sep 1st, 2000, 09:27 AM
#2
Frenzied Member
depends on the scanner
depends on how you set your scanner
i scan barcodes into textboxes as well
the curser usually stays to the end of the barcode
-
Sep 1st, 2000, 01:38 PM
#3
Thread Starter
Lively Member
Thank you for the reply, will try both method suggested above.
With best regards
CT
-
Sep 1st, 2000, 03:50 PM
#4
Lively Member
I'm curious coz i always wonder how to work with barcodes.
How did you do it is there some special code for that
can you give me some code or send me a place information
where i can gather some information about that.
Thanks! bye.
If possible please provide codes.
Process by example is the best way to learn.
-
Sep 1st, 2000, 04:34 PM
#5
Hyperactive Member
Does this have to do with the CueCat?
You know how RadioShack is giving away those barcode scanners? Is this what you guys are talking about? I got one and wrote my own app that translates the code into it's real value, if that's what you want.
bob
-
Sep 1st, 2000, 05:46 PM
#6
Frenzied Member
I'm sorry guys, but I'm really curious why are you scanning bar-codes? can you do cool stuff with it? seems fun
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|