在C#windows窗体项目销售点设置条形码扫描器 [英] Set barcode scanner on C# windows form project point of sale

查看:93
本文介绍了在C#windows窗体项目销售点设置条形码扫描器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在c#windows应用程序上设置条形码扫描器我有一个条形码,当我使用条形码扫描仪然后扫描条形码时它会自动扫描条形码并通过文本框我的光标在哪里但我的项目是销售点所以我想如果条形码是扫描所以数据添加在gridview表中否则我再次按Tab键可以解决这个问题请帮助我



我尝试了什么:



i我在Windows窗体应用程序上尝试条码扫描器

I want to set barcode scanner on c# windows application i have a barcode which is plug in play when i attact a barcode scanner and then scan a barcode it will automatic scan the barcode and past it text box where is my cursor but my project is point of sale so i want if barcode is scan so data add in gridview table otherwise i press tab button again and again any one can solve this problem please help me

What I have tried:

i am try barcode scanner on windows form application

推荐答案

我们不能 - 大多数条形码扫描仪都是用来模拟键盘的,所以当扫描代码时,它会像在键盘上输入一样到达活动应用程序。

大多数扫描仪可以重新配置为提供前导和尾随数据,分别表示条形码开始和条形码结束,这应该可以让你做你想做的事情。但是,您如何配置它(以及您可以获得的引导和跟踪序列)因制造商而异(甚至从模型到模型)。联系您的特定设备的制造商(或查看手册),他们应该能够帮助您。
We can't - most barcode scanners are shipped to emulate a keyboard, so when the code is scanned, it arrives at the active application exactly as if it had been typed on a keyboard.
Most scanners can be reconfigured to provide leading and trailing data to indicate "barcode start" and "barcode end" respectively, and that should enable you to do what you want. But how you configure it (and what you can get as the lead and trail sequences) varies from manufacturer to manufacturer (and even model to model). Contact the manufacturer of your specific device (or look in the manual) and they should be able to help you.


这篇关于在C#windows窗体项目销售点设置条形码扫描器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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