2

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.

Jon Seigel
  • 12,251
  • 8
  • 58
  • 92
abramlimpin
  • 5,027
  • 11
  • 58
  • 97
  • 1
    No mouse movement, does not always mean the user is idle, some people prefer to use the keyboard. You should be checking for key presses as well. – Craig T Sep 27 '10 at 00:43

2 Answers2

3

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.

Icono123
  • 3,830
  • 3
  • 21
  • 20
1

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#?.

Community
  • 1
  • 1
Icono123
  • 3,830
  • 3
  • 21
  • 20