且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用c#在我的应用程序中集成条形码阅读器

更新时间:2023-02-08 08:15:41

条形码扫描器主要用作键盘输入,除非另有配置。

所以基本上,你所要做的就是为扫描器添加一个文本框以输入,并搜索你的数据库当你有一个有效的代码时。



或者,你可以配置大多数扫描仪提供扫描序列的开始和结束,这意味着你可以在没有文本框的情况下自己捕获数据。但是你必须和制造商讨论这个问题因机器不同而不同。



搜索数据库是基本的东西,就像你输入的一样手动数据 - 你必须已经完成了几百次!


Hey guyss!! Can you Please describe me about how to integrate barcode scanner with c# windowform application. Actually I want to make an application in which i will scan the barcode through myu device and it will fetch records from the database and show it in my windows forms. I got a code to generate the barcode but don't know how to scan it and fetch the records. If you have the code then mail me on [DELETED]@gmail.com.
Thanks In advance

[edit]Email removed - OriginalGriff[/edit]

Barcode scanners mostly act as keyboard inputs, unless otherwise configured.
So basically, all you have to do is add a textbox for the scanner to "type" into, and search your DB when you have a valid code in there.

Alternatively, you can configure most scanners to provide a "start" and "end" of scan sequence, which means you can trap the data yourself without the textbox. But you'll have to talk to the manufacturers about that as it varies from machine to machine.

Searching the DB is basic stuff, exactly as if you had typed in the data in manually - and you must have done that a couple hundred times already!