Detection of "any event" in winforms app

  • Thread starter Anders K. Jacobsen [DK]
  • 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
 
I

InK_

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_
 
A

Anders K. Jacobsen [DK]

Thank alot

It was exatly what I was looking for.

Best regards
Anders Jacobsen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top