[问题]条形码阅读器 [英] [Question] Barcode Reader

查看:73
本文介绍了[问题]条形码阅读器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一下如何知道条形码阅读器何时扫描数据.我需要知道触发器,因为我想将扫描的数据放在焦点所在的适当文本框中.我已经在互联网上搜索了,可以通过导入Symbol.Barcode.BarcodeReader来完成,但是只能在智能设备项目中使用.我想知道Windows应用程序中是否有任何类似的库.感谢您的回答...

i want to ask how to know when a barcode reader scan a data. I need to know the trigger because i want to put the scanned data in the appropriate textbox wherever the focus is. i''m already search in the internet, it can be done by import Symbol.Barcode.BarcodeReader, but it can only be used in smart device project. I wonder if there any similiar library in windows application. Thanks for your answer...

推荐答案



通常,条形码读取器充当键盘(至少是我使用过的键盘).因此,您要做的就是将输入焦点设置为TextBox,然后扫描代码.这样,您的应用程序就不需要为阅读器进行特殊处理.

最好的问候
Hi,

normally a barcode reader acts as a keyboard (at least the ones I have worked with). So all you have to do is set the input focus to the TextBox and then scan the code. This way your application does not need a special handling for the reader.

Best regards


如果要确保在不同的文本字段中扫描每个项目,则可能需要选择一个条形码读取器,该条形码读取器在扫描代码后会添加CR LF(返回)-大多数可以配置条形码阅读器.这样,您可以确定代码的结尾并将输入焦点放在下一个控件上.
If you want to ensure that every item is scanned in a different text field, you may need to choose a barcode reader that after scanning the code adds CR LF (return) - most barcode readers can be configured to do so. This allows you to determine the end of the code and place the input focus on the next control.


这篇关于[问题]条形码阅读器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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