Solved

Intercepting All Application-Wide Keydown Events

Posted on 2009-05-08
2
515 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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