如何在win应用程序中通过USB条形码扫描器读取条形码? [英] how to read barcode by usb barcode scanner in win application ?

查看:194
本文介绍了如何在win应用程序中通过USB条形码扫描器读取条形码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作商店应用程序现在我在使用usb条形码扫描仪阅读条形码时遇到问题。我不知道,我在哪个事件上读取代码并传递给数据库以检索数据。我在2个事件之间混淆.1是textchanged,2是keydown然后是keyup事件,哪一个使用?



扫描程序读取完整代码并通过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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆