Please educate me on barcode scanners. Is it true that when you scan a barcode, the barcode scanner will automatically pass data to your program, so if there is a textbox, when you scan it, the barcode will be parsed into that textbox without any code or certain references? This is all new to me. I'm currently developing a POS system in C#.
Asked
Active
Viewed 182 times
0
-
3many / most modern barcode scanner devices will present themselves as a keyboard to the computer. – TZHX Nov 23 '22 at 09:39
-
This is a question about hardware so might be more suited to https://superuser.com/ – swatsonpicken Nov 23 '22 at 09:56
-
1Read the documentation for the scanner(s) that you're interested in using. You may consider using a scanner that can be configured as a `USB Serial` device. This will allow you to use [SerialPort Class](https://learn.microsoft.com/en-us/dotnet/api/system.io.ports.serialport?view=dotnet-plat-ext-7.0) which will allow your program to receive data without a particular control needing focus. If using a Honeywell barcode scanner, the following may be helpful: https://stackoverflow.com/a/74022784/10024425. – Tu deschizi eu inchid Nov 23 '22 at 15:13
-
If using a `USB Serial` device, the following may be helpful: https://stackoverflow.com/a/65971845/10024425 – Tu deschizi eu inchid Nov 23 '22 at 15:27
1 Answers
1
That depends on which barcode scanner you use, 99% of all scanners can be configured to act as a keyboard and then you can write input directly into a text field without any code if that is in focus.

Blizzer
- 83
- 6