Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am developing a stop watch and I wanted to know if anyone has any idea how to keep executing the stop watch timer even after the browser's window is closed.

E.G.: it is 00:01:15 when the browsers windows is closed. When reopened after 30 minutes I want to see the time something like 00:31:15.

Please help me.

Thanks,
Jason
Posted
Comments
BillWoodruff 16-Aug-11 17:09pm    
Are you using a WebBrowser control here in a WinForms project or WPF project ? Or ?

store the starttime in a database table and when reopening, read the value from it and have the timediff calculated and displayed in your website.
 
Share this answer
 
v2
Is there any other option apart from using a database for it??
 
Share this answer
 
You could store the starttime in a cookie or on server side. When you reopen the site you can read that value and calculate the elapsed time.
 
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