Click here to Skip to main content
15,917,062 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

i want to set my project of

i user can't take any action in 10 second at runtime then message box show

e.g window xp if user can't take any acton of some time then screen saver are show

e.g mobile if user can't take any acton of some time then mobile are automatic lock

please help me

thanks in advance
Posted

khalid khatri wrote:
e.g window xp if user can't take any acton of some time then screen saver are show

e.g mobile if user can't take any acton of some time then mobile are automatic lock


These are already handled by the operating system. For mobile devices this is usually a minute or less. For Windows, it's user definable, but you can kick off the screen saver programatically if you want to (google is your friend).

khalid khatri wrote:
i user can't take any action in 10 second at runtime then message box show


So write a thread that waits for the time limit, and then shows the messagebox. If the user takes an action before the thread expires, abort the thread, and restart it again after the user's action is complete.
 
Share this answer
 
Perhaps my Application Idle[^] article will be of use?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900