×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Scan barcode and upload files...

Scan barcode and upload files...

Scan barcode and upload files...

(OP)
Hello,

I am currently working on a project for scanner Intermec CK30 in VB.NET. This project is that scanning the barcode and write barcodes to the file. And I have a couple questions to ask, please help me if you could:

1) I have two textbox, let say txtbox1 and textbox2. When I scan a barcode in textbox1, I want the cursor go to textbox2 after I finished scanning the barcode in textbox1. Is there any controls or methods that know that it is end of barcode so go to next textbox (textbox2)? If I know it is the end of barcode when I scan, so I can set focus in textbox2. My application can go textbox2 when I press enter key after I scanned a barcode. However, I dont want to press enter key. I want it is automatically go to textbox2 after scanning a barcode. Anyone can help me?

2) Question two: Any have any resources(sample codes) for uploading files from handheld to desktop through USB in VB.NET? I can write the code that can copy files from handheld to desktop for desktop application. But I want to press a key, let say F5 in handheld and when handheld scanner connected to desktop in USB, the files will upload to desktop. Anyone can help me this?

Thank you very much for you helps.

Thanks.     

RE: Scan barcode and upload files...

In the documentation to the scanner you should have a page with codes to scan to make changes in the scanner setup. With these codes you can add prefix and suffix as CR Tab and others like changing beep levels.

RE: Scan barcode and upload files...

(OP)
Hi jwigh,

Thank you very much for your help. I think I know what you mean.

RE: Scan barcode and upload files...

(OP)
jwigh,

Actually I receive this scanner without the manual... However, I go to configuration utility and set symbology with Postamble = "@" . Now everytime I scan barcode I have "@". Which means, I have a barcode = 12345, after I scan = 12345@. But I still have a problem. I would like to write this portion code so you can take a look.

Dim strScanBarcode as string

Dim strScanBarcode = Microsoft.VisualBasic.Right(textbox1.text,1)

if strScanBarcode = "@" then
   txtBox2.focus
End if

I don't know why it doesn't work. Do you have any ideas?

Thank you very much.

RE: Scan barcode and upload files...

(OP)
jwigh,

Actually I receive this scanner without the manual... However, I go to configuration utility and set symbology with Postamble = "@" . Now everytime I scan barcode I have "@". Which means, I have a barcode = 12345, after I scan = 12345@. But I still have a problem. I would like to write this portion code so you can take a look.

Dim strScanBarcode as string

Dim strScanBarcode = Microsoft.VisualBasic.Right(textbox1.text,1)

if strScanBarcode = "@" then
   txtBox2.focus
End if

I don't know why it doesn't work. The cursor won't jump to textbox2, even I set focus in textbox2. For some reasons, I check "@" won't work. Do you have any ideas?

Thank you very much.

RE: Scan barcode and upload files...

Not sure what you coded here ????

Dim strScanBarcode = Microsoft.VisualBasic.Right(textbox1.text,1) '<< ????

should be for VB.NET 2003

CODE

        If Me.TextBox1.Text.EndsWith("@") Then
            txtBox2.focus()
        End If
------for VB6

CODE

If right(textbox1,1) = "@" then
    txtBox2.setfocus
end if

DougP, MCP, A+

RE: Scan barcode and upload files...

(OP)
Thank you for your helps. It works.

RE: Scan barcode and upload files...

Why donĀ“t put a CrLf or Tab as Postamble which will move focus to the next item if you can set a taborder.

RE: Scan barcode and upload files...

(OP)
jwigh,

I di put CrLf and Tab in Postamble, but it won't work...I don't know why? But I can do another ways around and it works.

Thank you very much for all your helps.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close