使用 C# 按下 Datalogic 存储设备上的扫描按钮时的替代事件
我正在使用 C# 2003 作为 Datalogic Memor 应用程序。我研究过,按下设备的“扫描按钮”时会触发 KeyPress 事件。捕获它是 if(e.KeyChar == 13)
但它不起作用。还有其他选择吗?
I'm using C# 2003 for a Datalogic Memor application. I have researched that a KeyPress Event is triggered when the "scan button" of the device is pressed. Capturing it was if(e.KeyChar == 13)
but it doesn't work. Is there another alternative for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试安装 Datalogic SDK 2_0_0_0
您可以从 Datalogic得利捷 网站。
然后添加对 datalogic API 的引用:
现在您可以通过以下方式使用 API:
在您的表单声明上: 在
您的表单加载事件上:
这是您的事件侦听器:
在您的表单关闭事件上:
Try to install Datalogic SDK 2_0_0_0
You can Download it from Datalogic website.
And then add a reference to the datalogic API :
Now you can Use the API in this way:
On your Form declaration:
On your form loading event:
And this is your event listener:
ON your form closing event:
对于 Datalogic Memor X3,我像这样使用 DLScannerListener:
然后我在方法
scanner_notify
中执行逻辑For the Datalogic Memor X3 I use the DLScannerListener like this:
Then I do the logic inside the method
scanner_notify