Reputation: 5087
Is there a way to create a window (similar to a screen-saver) that will be displayed once your running application is not 'interacting' (or being idle) with the user, meaning to say, no mouse movements happening on the application.
Some of my friends suggested to use a Timer for this one. Any suggestion for a good head start? Thanks.
Upvotes: 2
Views: 2167
Reputation: 3960
If your looking to create your own screensaver just create another form. Remove the border from the form. Make it the top most and start maximized. Then you just paint the control to do whatever you want.
Then wire up the form to check if the mouse moves or a key is pressed. You'll need to create a timer that will determine if the screensaver should be shown.
Upvotes: 3
Reputation: 3960
This might help: http://www.codeproject.com/KB/miscctrl/csharpscreensaver.aspx.
There's a similar question on StackOverflow here: How to invoke the screen saver in Windows in C#?.
Upvotes: 1