Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
so I want to make a winform app that scans a barcode and a countdown of 2h starts once the barecode is scanned any help?

What I have tried:

this my first time working with barcode so I don't know what to do
Posted
Updated 19-Jun-23 5:10am
Comments
Richard MacCutchan 19-Jun-23 10:59am    
Start by reading the documentation that came with the barcode reader.

1 solution

Most barcode readers come preconfigured to act as a keyboard: you scan the code and to your app it looks exactly like the user typed the number in. That's probably not helpful to you!

However, most scanners can also be configured to provide "lead in" and "tail out" sequences which would allow your code to spoty that a code has been read by monitoring the keyboard input. Detect the lead in and start assembling the code, detect the tail out and set off the timer - not difficult to do.

However, how you setup the scanner is down to the manufacturer - so you'll have to contact them to work it out - I'd start with their website then check thier tech support if necessary.
 
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