J
Jeff S
I'm creating a new Windows Forms MDI application...
How can I add cause the application to shut itself down after a period of
[no user activity]?
I did this in an old COM/VB6 application and I had to have code behind
practically all visible UI controls (triggered on the Mouse_Move event) that
reset a global variable monitored by a timer. If the global value
incremented past a certain point, then a Timer event procedure would cause a
dialog to appear. If the user failed to respond to the dialog after 10
seconds, then the app would shut down.
Does .NET give us an easier way to accomplish the same? I don't want to have
to detect the mouse_move event of practically every UI control and have a
timer running in the background the whole time, if possible.
Thanks!
How can I add cause the application to shut itself down after a period of
[no user activity]?
I did this in an old COM/VB6 application and I had to have code behind
practically all visible UI controls (triggered on the Mouse_Move event) that
reset a global variable monitored by a timer. If the global value
incremented past a certain point, then a Timer event procedure would cause a
dialog to appear. If the user failed to respond to the dialog after 10
seconds, then the app would shut down.
Does .NET give us an easier way to accomplish the same? I don't want to have
to detect the mouse_move event of practically every UI control and have a
timer running in the background the whole time, if possible.
Thanks!