如何将条形码扫描仪数据输入C#.Net文本框? [英] How to input barcode scanner data to C# .Net textbox?

查看:68
本文介绍了如何将条形码扫描仪数据输入C#.Net文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开展一个项目,我需要在用户扫描项目/产品时将条形码中的扫描数据输入到文本框中。然后他们提交以保存扫描的项目编号。

我将在C#中执行此操作。请指导我从何处和我是如何开始这个的。做必要的

Hi All,
I am working on a project where i need to input scanned data from bar code to a text box when user scan a item/ product. Then they give submit to save scanned item number.
Am going to do this in C#. Kindly guide me from where & how i have start this. Do the needful

推荐答案

只需制作Textbox.Focus。当您使用扫描仪时,它会自动在文本框中输入数据。
Just make Textbox.Focus. When you use the scanner it automatically enter the data in the textbox.


文本应该输入到活动控件,就像它从键盘上输入一样。只需记住检查条形码阅读器是否为HID。
The text should be entered to active control just as it would have typed from the keyoboard. Just remember to check that the barcode reader acts as a HID.


这篇关于如何将条形码扫描仪数据输入C#.Net文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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