954,558 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Detect USB Barcode readers and capture input

Hello,

I am developing a system where in I want to use 2 USB Barcode
Readers attached to a single PC. I want to capture input from both of the readers. When barcode is showed against a barcode reader, I want to store that value in a variable and then store further in a text file.

Please suggest....

Regards,
Vidhi.

Vidhi.Sharm
Newbie Poster
2 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

Hi,

Keep the Cursor in a TextBox and click the button on the BarCode Reader or Shoot the BarCode Gun, The Text/Alphanumeric Equivalent of the Bar Code is displayed in the TextBox. Provided u have properly installed all the .dll's of the BarCode reader given to u by the vendor.
In TextBox Change or LostFocus Event u can write the code to
Open a File in append mode And save the contents.

Regards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

Hello Veena,

Thanks for your response.
Actually we are currenlty capturing the data using textBox, but this requires focus to be always set on TextBox, which is not possible here.
We are facing problem due to focus set. So we want to capture data where data goes directly to a variable, instead of capturing via a textbox, etc.

Please suggest for the same.

Thanks & Regards,
Vidhi


Hi,

Keep the Cursor in a TextBox and click the button on the BarCode Reader or Shoot the BarCode Gun, The Text/Alphanumeric Equivalent of the Bar Code is displayed in the TextBox. Provided u have properly installed all the .dll's of the BarCode reader given to u by the vendor.
In TextBox Change or LostFocus Event u can write the code to
Open a File in append mode And save the contents.

Regards
Veena

Vidhi.Sharm
Newbie Poster
2 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

Hi Vidhi,

there is an option in most of the barcode readers , what should it do after capturing the barcode data.. there u set it to "Tab". After reading, Lost focus is fired.
And In Lost focus event write the code to save in text file and empty the textbox and set foucs back to the Textbox.. do all this until the content of textbox is non empty. Once textbox is empty then set focus to next control.

In one of our previous projects we had the same requirement and we used the above logic and it worked fine for us.

Regards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 
Hi, Keep the Cursor in a TextBox and click the button on the BarCode Reader or Shoot the BarCode Gun, The Text/Alphanumeric Equivalent of the Bar Code is displayed in the TextBox. Provided u have properly installed all the .dll's of the BarCode reader given to u by the vendor. In TextBox Change or LostFocus Event u can write the code to Open a File in append mode And save the contents. Regards Veena


how ro read a barcode sanner to my invenetory database which written in vb code

regards
Osama Ghandour

osamageris
Newbie Poster
1 post since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You