Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am trying to run a C# program that captures an event invoked from a DLL that listens to a finger print device. While my window is the active window - it works fine, but at the moment it is in the background- it does not capture the events.

How can I get over this problem?

Thank you
Posted
Comments
Sergey Alexandrovich Kryukov 19-Jan-12 1:21am    
Do you mean just "handle events"? What is it supposed to mean, "background application"? Oh, I see, not activate main window, right? Unfortunately, this is how finger print software works, it looks like...
--SA
Edmond Malka 19-Jan-12 3:33am    
Would creating a service work?

1 solution

Is that "background application" actually a Windows service? Then the solution is shown in
Capturing Device Events in a C# Windows Service[^]
Or is it an application running in the user context, but its window is not the top window (or even hidden)? Then the solution is similar to this:
Background applications listening for keyboard activity[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900