Im trying to find some information on getting user activity/inactivity via a timer.

I have an MDI form with a number of child forms I want to trap for key activity or mouse activity so that no matter what form I am in if time > x then I can execute a function, much the same way as a screensaver works in windows i would guess.

I have thought about having a timer class that when program loads it starts timer then in each form performing a reset on timer value if key or mouse is used but this isnt viable as I need to hard code each form seperatley.

If anyone has any ideas or can point me to somewhere that has a similar example I'd be grateful.

Thnx