如何使用 vb.net 从条形码阅读器中获取文本框中的值
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14986999/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to get value in textbox from barcode reader using vb.net
提问by Devraj
I want to take value from barcode reader to textbox. I have tvs 101 platina (barcode reader) i am new in vb.net plz provide me solution.
我想从条形码阅读器到文本框获取价值。我有 tvs 101 platina(条形码阅读器),我是 vb.net 的新手,请为我提供解决方案。
回答by Arpit
I'm just giving a start :
我只是开始:
1st here is a programme manual: http://www.tvs-e.in/pos/pdf/Programming_Guide_BS-L101-Platina.pdf
第一个是程序手册:http: //www.tvs-e.in/pos/pdf/Programming_Guide_BS-L101-Platina.pdf
2nd the article that i used before : http://www.codeproject.com/Articles/296533/Using-a-bar-code-scanner-in-NET
第二篇我之前用过的文章:http: //www.codeproject.com/Articles/296533/Using-a-bar-code-scanner-in-NET
What you have to do:
你必须做的:
Scanner is similer to keyboard. so you need key event listener for focusing on text field.
扫描仪类似于键盘。所以你需要关键事件监听器来关注文本字段。
programme the scanner to send the special key code for start and end of scan.(it will be given in the manual)
对扫描仪进行编程以发送扫描开始和结束的特殊键码。(手册中将给出)

