PDA

Click to See Complete Forum and Search --> : C# program that uses a barcode scanner [* Resolved *]


steve_rm
Jan 15th, 2006, 01:14 AM
Hello

I am writing an program that will use a bar code scanner to scan products. The product code will be looked up in a database and return the details of the product to the windows form.

I have never worked with this barcode hardware before, and before l purchase some a bar code scanner. I need some questions answered.

Does the barcode scanner come with any software?
It is easy to interface a c# windows program with a barcode scanner?
Does the barcode scanner connect through the USB port?
Does anyone know any example programs where this has been done?

Thanks very much in advance,

Steve

jmcilhinney
Jan 15th, 2006, 01:38 AM
A barcode scanner is just an input device, like a keyboard or mouse, although obviously less common. The majority of existing barcode scanners connect via the keyboard PS2 port and provide a pass-through so you can plug the keyboard in as well. When you scan a barcode it is just as though you have keyed the same characters into the keyboard. Some newer barcode scanners do use USB connections but their drivers will basically make them behave exactly as the older ones do.

steve_rm
Jan 15th, 2006, 04:05 AM
Hello

Thanks for your help.

Just to clear something up. If l have my c# application and click on a text box, scan a barcode, the barcode will appear in the text box. Seems very simple.

Is this all there is to it?

Thanks again,

Steve

jmcilhinney
Jan 15th, 2006, 05:17 AM
I've never actually developed an application that has interacted with a barcode scanner but my sister-in-law works for a company that installs POS systems (MYOB RetailManager and Microsoft RMS). The information I gave you came from her. She's pretty savvy and has an IS degree, but she's not a developer. Having said that, from what she's told me it would seem that, as far as the system is concerned, it's as though the barcode has come from the keyboard.