Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hey guyss!! Can you Please describe me about how to integrate barcode scanner with c# windowform application. Actually I want to make an application in which i will scan the barcode through myu device and it will fetch records from the database and show it in my windows forms. I got a code to generate the barcode but don't know how to scan it and fetch the records. If you have the code then mail me on [DELETED]@gmail.com.
Thanks In advance

[edit]Email removed - OriginalGriff[/edit]
Posted
Updated 8-May-14 3:03am
v2
Comments
Sergey Alexandrovich Kryukov 8-May-14 8:54am    
Start with reading the documentation on your barcode reader.
—SA
[no name] 8-May-14 8:56am    
Point barcode scanner at barcode, pull trigger on barcode scanner. Barcode scanner acts as keyboards in applications. All you really need to do is write some code to query your database after the barcode has been scanned. And no one is going to mail code to you.
OriginalGriff 8-May-14 9:03am    
Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know.

1 solution

Barcode scanners mostly act as keyboard inputs, unless otherwise configured.
So basically, all you have to do is add a textbox for the scanner to "type" into, and search your DB when you have a valid code in there.

Alternatively, you can configure most scanners to provide a "start" and "end" of scan sequence, which means you can trap the data yourself without the textbox. But you'll have to talk to the manufacturers about that as it varies from machine to machine.

Searching the DB is basic stuff, exactly as if you had typed in the data in manually - and you must have done that a couple hundred times already!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900