Solved

Intercepting All Application-Wide Keydown Events

Posted on 2009-05-08
2
513 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
2 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
Comment Utility
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now