Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scan barcode and upload files... 1

Status
Not open for further replies.

NMickey

Programmer
Nov 7, 2004
15
US
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.
 
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.
 
Hi jwigh,

Thank you very much for your help. I think I know what you mean.
 
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.
 
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.
 
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+
 
Why don´t put a CrLf or Tab as Postamble which will move focus to the next item if you can set a taborder.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top