如何在使用条形码扫描仪扫描的文本框中获取数据 [英] how to get data in a textbox that is scanned using bar code scanner

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

问题描述

请尽可能发送示例代码

解决方案

文本框只有一种获取数据的方法-TextBox.Text

没有人会像这样发送源代码.这是某种形式的代码慈善吗?

您使用搜索了吗?我有制图板中与此相关的几个问题.

这是一个例子
http://www.codeproject.com/Messages/3310235/Text-Cahnging-Whith-BarCode-Reader-in-TextBox-Csha.aspx [ 解决方案

A TextBox only has one way for you to get at it''s data - TextBox.Text


Nobody will just send source code like that. Is this some sort of code charity?

Have you used search? i have and there are several questions in the pogramming boards relating to this.

Here is one example
http://www.codeproject.com/Messages/3310235/Text-Cahnging-Whith-BarCode-Reader-in-TextBox-Csha.aspx[^]

Basically the scanner will just inject a string into the keyboard stream.

So it could be as simple as ensuring text box has the focus and then activate the scanner, or it could be a lot harder, and you may have to use SDK''s / API''s from the scanner OEM.

Go investigate, don''t just scrounge.


这篇关于如何在使用条形码扫描仪扫描的文本框中获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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