>Hi All,
>
>I want to make a thing like screen saver in my apps. In certain time, if no touch to keyboard or mouse click, my apps will activate a screen do something that like screen saver.
>
>Please help me solve my problem.
>
>Thanks in advance.
Basically, you need a Timer control. Set the interval to 5 minutes (convert that to miliseconds, for instance, 5 * 60 * 1000). In the Timer Event, start your screensaver. Note: the Timer Event starts after the elapsed time.
Also, every time the user presses any key, you would have to Reset() the Timer. This is the tricky part. Probably you would need to intercept Form.KeyPress(), set Form.KeyPreview to .T., and do all this in your base form. I don't know how to intercept clicks on the menu.
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)