I want to run code if the user is inactive for a period of time.  But I am 
having a hard time detecting inactivity.

I tried creating a timer that will get reset whenever the user clicks on 
something, but the problem is that click events don't bubble up through the 
interface (as would happen in Flash, for example).

So I can create a sub called Output_Click.  But as soon as a form is drawn, 
Output_Click won't receive click events any more.

I can create a sub called Form1_Click.  But as soon as I add content to the 
form (like a button, text, image, etc), it won't receive click events unless I 
click on a blank space that doesn't have content.

The only solution I can think of is add 'sub whatever_Click' for every visual 
component on every form.  But that is a bad solution.

Also, none of this will work for key press events, which should also reset an 
inactivity timer.

Is there a more elegant way to do this?  

Or, is there a way to trigger an event when the backlight turns off?  The 
backlight seems to be pretty reliable at determining inactivity.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to