如何在win应用程序中通过USB条形码扫描器读取条形码? [英] how to read barcode by usb barcode scanner in win application ?
本文介绍了如何在win应用程序中通过USB条形码扫描器读取条形码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
和
扫描程序读取完整代码并通过char传递为sting或char?
解决方案
取决于扫描仪,但大多数都默认发送键盘输入 - 所以你不需要做任何事情,除了确保输入到正确的地方。
如果这不是您想要的,那么您需要向制造商咨询扫描仪的具体品牌和型号以获取建议。
me making a shop application now i am facing problem in reading barcode using usb barcode scanner.i am not know ,on which event me read code and pass to database for retrieving data.i am confuse in between 2 events.1 is textchanged ,2 is keydown then keyup event,which one use ?
and
scanner read full code and pass as sting or char by char ?
解决方案
Depends on the scanner, but most of them ship defaulted to generate keyboard input - so you don''t need to do anything except ensure that the input is going to the correct place.
If that isn''t what you want, then you need to look to teh manufacturer of the specific make and model of your scanner for advice.
这篇关于如何在win应用程序中通过USB条形码扫描器读取条形码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文