Detection of "any event" in winforms app

  • Thread starter Thread starter Anders K. Jacobsen [DK]
  • Start date Start date
A

Anders K. Jacobsen [DK]

Hey

I want to apply an auto logout functionality to my windows forms appliaction
(.net 2 / 2005).

I want to have timer which i reset after each action user do. eg. Push a
button, pick a menu item etc. Since i don´t have a custom global event
handler it would be pretty cumbersome to call a AutoLogoutManager with eg.
Refresh in every event handler in my application.

Is there any "global" event handler or simular functionality in the .net 2
framework?

Thanks in reagards
Anders
 
Hi, Anders

Imo it would be enough if you detected mouse move and key down events.
You can reset your timer not every time the event is raised but may be after
some seconds.

Regards,
InK_
 
Thank alot

It was exatly what I was looking for.

Best regards
Anders Jacobsen
 
Back
Top