如何使用VB.NET 2010在条形码和键盘两种形式上同时输入数据 [英] How do I input data simultaneously on two forms one by barcode and second by keyboard using VB.NET 2010

查看:86
本文介绍了如何使用VB.NET 2010在条形码和键盘两种形式上同时输入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在第一个表单用户的一个应用程序中使用键盘和第二个表单用户同时使用条形码扫描器尝试输入数据。我怎样才能做到这一点 。条形码扫描器随时可以最小化模式。



我尝试过:



I trying input data in one application on first form user using keyboard and second form user using barcode scanner simultaneously. How can i do this . barcode scanner form any time minimized mode.

What I have tried:

I trying input data in one application on first form  user using keyboard and second form user using barcode scanner simultaneously. How can i do this . barcode scanner form any time minimized mode.

推荐答案

差不多,你不能 - 至少没有一些细心的工作。 />
大多数扫描仪都设置为模拟键盘 - 因此当用户扫描条形码时,应用程序会收到一个输入流,看起来像键盘输入,无法与它们区分开来。没有用于检测键盘值来自何处的机制。



但是大多数扫描仪可以配置为提供引入和尾随代码,应用程序可以检测并将条形码信息转移到您想要的任何位置。如何做到这一点取决于扫描仪的制造商(有时是模型) - 通过他的网站联系制造商,询问你是如何做到这一点的,如果他们有样本代码你可以用作参考。
Pretty much, you can't - at least not without some careful work.
Most scanners ship set up to emulate a keyboard - so when the user scans a barcode your application receives a stream of inputs that look like keyboard input and cannot be distinguished from them. There is no mechanism for detecting where a keyboard value came from.

But most scanners can be configured to provide "lead in" and "tail out" codes, which you app can detect and divert the barcode information to wherever you want. How this is done depends on the maker (and sometimes model) of the scanner - contact the manufacture via his website and ask how you do this and if they have sample code you can use for reference.


这篇关于如何使用VB.NET 2010在条形码和键盘两种形式上同时输入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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