We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Any way of capturing a Keyboard Event from windows???

Thread ID:





3897 Apr 16,2003 04:36 PM UTC Apr 18,2003 01:45 PM UTC WinForms 2
Tags: FAQ
Matt Wareham
Asked On April 16, 2003 04:36 PM UTC

I'm looking for a way to capture a Keyboard Event that might fire from any active application in Windows, in my WinForms application. My WinForms application is an audio player that is used by medical transcriptionists. The audio player is usually minimized while the transcriptionist is in Word transcribing the audio dictation. It would be nice if while in Word they could press Shift-Ctrl-F (or some other keystroke) which could then be caught by my application which would automatically move them to the next file to be transcribed. If anyone has some insight or sample code, I would greatly appreciate it! This would save the user the hassle of having to go back and forth between applications.

Administrator [Syncfusion]
Replied On April 17, 2003 09:34 AM UTC

Check out this Google thread. http://www.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=UHMWgCfmCHA.2144%40cpmsftngxa09&rnum=16&prev=/groups%3Fq%3DSetWindowsHookEx%2Bgroup:*dotnet*%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26start%3D10%26sa%3DN

Matt Wareham
Replied On April 18, 2003 01:45 PM UTC

Thanks for the link Clay. I've tried this one, along with 3 other examples and none of these seem to be able to capture a keyboard event from anything other than it's own application. I've tested this in a simple C# WindowsForm and whenever it's minimized or doesn't have focus, it will not pick up on a keyboard event from another application. Might you have any other suggestions? Thanks again!


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon