USB扫码枪无焦点输入到指定页面、指定文件框中

上传者: 44002308 | 上传时间: 2023-02-11 08:58:24 | 文件大小: 234KB | 文件类型: ZIP
最近在处理一个工控制软件,需要使用到无线扫码枪通过USB输入条码,并触发相应的数据处理,一般用途中通过USB扫码枪输入到指定文本框需要该文本框获得焦点才能正常输入并触发相应的程序处理过程。但在实际使用过程中,由于程序是有多个窗口,有条码输入的窗口,也有历史数据查询的窗口,存在多人操作的情况,有人在用无线条码枪扫码,有人在查询窗口查询数据。在这种情况下,往往扫码输入的窗口不在当前激活的页面,扫码后就不能执行相应的过程。经过参考其他大神的作业。都过修改,以下作业,可以实现USB扫码枪无焦点输入到指定页面、指定文件框中,可以实现多人操作,不会影响扫码枪的输入及数据处理的过程。 ———————————————— 版权声明:本文为CSDN博主「李昌华」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/weixin_44002308/article/details/128048466

文件下载

资源详情

[{"title":"( 46 个子文件 234KB ) USB扫码枪无焦点输入到指定页面、指定文件框中","children":[{"title":"SCAN","children":[{"title":".vs","children":[{"title":"SCAN","children":[{"title":"FileContentIndex","children":[{"title":"54afcf47-c35d-4b9a-b43d-e071718d90d1.vsidx <span style='color:#111;'> 19.62KB </span>","children":null,"spread":false},{"title":"merges","children":null,"spread":false},{"title":"08b05efd-7280-40ad-8062-e399bcc67225.vsidx <span style='color:#111;'> 210.72KB </span>","children":null,"spread":false},{"title":"1a20bd60-3f93-449e-bfb3-cf9622831de1.vsidx <span style='color:#111;'> 26.56KB </span>","children":null,"spread":false},{"title":"1b391c9e-dfd0-4135-8cc9-b7bad205674b.vsidx <span style='color:#111;'> 35.04KB </span>","children":null,"spread":false},{"title":"read.lock <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"v17","children":[{"title":".suo <span style='color:#111;'> 54.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"SCAN","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"RawInput.dll <span style='color:#111;'> 26.50KB </span>","children":null,"spread":false},{"title":"SCAN.exe.config <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"SCAN.exe <span style='color:#111;'> 44.50KB </span>","children":null,"spread":false},{"title":"DeviceAudit.txt <span style='color:#111;'> 10.27KB </span>","children":null,"spread":false},{"title":"SCAN.pdb <span style='color:#111;'> 67.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"MDIParent1.Designer.cs <span style='color:#111;'> 37.80KB </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"RawInput.dll <span style='color:#111;'> 26.50KB </span>","children":null,"spread":false},{"title":"Form2.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"SCAN.csproj <span style='color:#111;'> 4.26KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 530B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"SCAN.exe <span style='color:#111;'> 44.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.03KB </span>","children":null,"spread":false},{"title":"SCAN.csproj.AssemblyReference.cache <span style='color:#111;'> 6.37KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"SCAN.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"SCAN.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"SCAN.MDIParent1.resources <span style='color:#111;'> 15.02KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"SCAN.csproj.SuggestedBindingRedirects.cache <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"SCAN.csproj.GenerateResource.cache <span style='color:#111;'> 220B </span>","children":null,"spread":false},{"title":"SCAN.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"SCAN.Form2.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"SCAN.pdb <span style='color:#111;'> 67.50KB </span>","children":null,"spread":false},{"title":"SCAN.csproj.CopyComplete <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"SCAN.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":".NETFramework,Version=v4.7.2.AssemblyAttributes.cs <span style='color:#111;'> 214B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"MDIParent1.resx <span style='color:#111;'> 26.50KB </span>","children":null,"spread":false},{"title":"Form2.cs <span style='color:#111;'> 857B </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"ScanerHook.cs <span style='color:#111;'> 11.38KB </span>","children":null,"spread":false},{"title":"Form2.Designer.cs <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"MDIParent1.cs <span style='color:#111;'> 4.62KB </span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"SCAN.sln <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明