如何从C#Winforms中的条形码扫描仪读取条形码值 [英] How to read the barcode value from barcode scanner in C# Winforms

查看:81
本文介绍了如何从C#Winforms中的条形码扫描仪读取条形码值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过USB端口连接了条形码扫描仪,并试图在应用程序的文本框中显示条形码值.当我扫描条形码时,它会发出蜂鸣声,但是我无法在应用程序中看到条形码值.

I have connected the barcode scanner through the USB port and trying to display the barcode value in the textbox of an application. When i scanned the barcode it beep the sound but i am not able to see the barcode value in my application.

推荐答案

通常,条形码扫描器读取该值并将读取的数据像按键一样发送到计算机.

Usually barcode scanners read the value and send the read data to computer like key strokes.

首先,安装条形码扫描仪的驱动程序(如果有).然后

First, install the drivers of barcode scanner if any. Then

您可以尝试打开记事本并尝试读取条形码吗?如果条形码进入记事本,则只需打开一个winforms项目,使用文本框,然后再阅读条形码,只需将焦点放在文本框即可即可.

Can you try to open a notepad and try to read a barcode. If barcode comes to notepad, then just open a winforms project, use textbox, before reading barcode just focus to textbox

这篇关于如何从C#Winforms中的条形码扫描仪读取条形码值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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