Solved

Intercepting All Application-Wide Keydown Events

Posted on 2009-05-08
2
514 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
ID: 24341075
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Code works but I need to redo it and assign values to Model 7 31
Runtime Error 2 27
VB.Net How to Exit Sub - Exit Form??? 5 47
Error on link 14 36
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

929 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

8 Experts available now in Live!

Get 1:1 Help Now