条形码扫描指定文本框焦点,扫描表单VB.NET上的任何位置 [英] Barcode scan to specify textbox focus, scan anywhere on form VB.NET

查看:91
本文介绍了条形码扫描指定文本框焦点,扫描表单VB.NET上的任何位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

i have multiple textbox but i want go to specific textbox after scan from barcode.
barcode scan to specify textbox focus,scan anywhere on form vb.net.





我尝试过:





What I have tried:

<pre>
i have multiple textbox but i want go to specific textbox after scan from barcode.
barcode scan to specify textbox focus,scan anywhere on form vb.net.

推荐答案

我们无法真正回答答案是肯定的:大多数条形码扫描仪配置为充当键盘,你不能直接从输入中告诉数据来自哪个设备 - 这意味着如果你的用户开始输入,焦点将转移到条形码数据文本框也是如此,这会让很多人感到厌烦。



但是,通常可以配置扫描仪以提供 inandtail-out你应该能够在代码中检测到的字符或序列,并适当地设置焦点。确切地说,字符或序列是什么,以及如何启用该选项对于每个制造商来说都是不同的(通常也是不同的型号)。

联系扫描仪的制造商,并询问他们:大多数提供技术支持并将用于问题!
We can't really answer that with a definitive answer: most barcode scanners ship configured to act as a keyboard, and you can't tell directly from the input which device the data has come from - which means that if your user starts typing, the focus would shift to the "barcode data" text box as well, and that would annoy a huge number of people.

However, it is usually possible to configure the scanner to give a "lead-in" and "tail-out" character or sequence which you should be able to detect in your code and set the focus appropriately. Exactly what the character or sequence is, and how you enable the option will be different for each manufacturer (and often different models as well).
Contact the manufacturer of your scanner, and ask them: most provide technical support and will be used to the question!


这篇关于条形码扫描指定文本框焦点,扫描表单VB.NET上的任何位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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