条形码扫描阅读器文本框addhandler [英] Barcode scan reader textbox addhandler

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

问题描述

Sascha Lefevre.
sir,
I want to barcode scan only for one textbox you added in your above solution three textbox .. but I want and I have only one textbox for barcode scan... plz modify it for one textbox … when I scan barcode the product should add and textbox again ready for next scan.... no enter required... plz thanks in advance





我的尝试:





What I have tried:

<pre>Sascha Lefevre.
sir,
I want to barcode scan only for one textbox you added in your above solution three textbox .. but I want and I have only one textbox for barcode scan... plz modify it for one textbox … when I scan barcode the product should add and textbox again ready for next scan.... no enter required... plz thanks in advance

推荐答案

不要在快速答案下发布 - 如果您从文章中获得了代码,那么该文章底部会出现添加评论或问题按钮,导致将电子邮件发送给作者。然后他们会被告知你希望与他们交谈。

在这里发布这个依赖于他们匆匆而过并意识到这是为了他们。



但是......大多数条码扫描器都配置为默认模拟键盘,你无法区分扫描数据和键入数据 - Windows根本不向应用程序提供这些信息。



执行所需操作的唯一方法是重新配置扫描仪,以提供应用程序可以检测并用于强制输入到特定文本框的引入和跟踪序列,然后在完成时动作。要了解如何添加这些序列,您需要查阅扫描仪文档,或与制造商交谈,因为每个制造商的流程都不同(即使每个型号也是如此)。
Don't post this under Quick Answers - if you got the code from an article, then there is a "Add a Comment or Question" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.

But ... most barcode scanners are configured to emulate a keyboard by default, and you cannot tell the difference between scan data and typed data - Windows does not provide that information to applications at all.

The only way to do what you want is to reconfigure your scanner to provide "lead in" and "trail out" sequences that your app can detect and use to force the input to a specific textbox, then action it when complete. To find out how to add those sequences, you need to consult the scanner documentation, or talk to the manufacturers as the process is different for each manufacturer (even even for each model).


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

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