Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Intercepting All Application-Wide Keydown Events

Posted on 2009-05-08
2
Medium Priority
?
519 Views
Last Modified: 2013-12-17
I have an application that periodically accepts barcode scanner data from a hand scanner.   The data comes in the USB port, but appears to the application just as typed data, i.e. keydown events of character data.    When the application is expecting scanned data, I would like to intercept all keydown events at the application level so that all keydown data is evaluated to determine if it matches the expected scan, so that I can inform the user of either "bad scan" or forward the scanned data on to on of three (3) label display on a particular Topmost form, depending on the content of the scan.   So even if a user begins to physically type into a textbox on a form, I would like to first intercept the keydown events so as to check them, and if determined not to be the expected scans, allow them to go on to the user's intended textbox.

How would this be implemented on an application-wide basis ?

A fallback position would be if this is not possible on an application wide basis, how would it be implemented on just a form-wide basis ?

Thanks in advance.   Any reference to web-site articles, application methods, form methods, etc would be greatly appreciated.
0
Comment
Question by:Coder911
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 1500 total points
ID: 24341075
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question