Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here's what I really want: I'd like for changes to to be saved automatically. The major thing is that it doesn't ask you to save changes before you close. After a crash or opening the program, the previous state is restored.

Is this possible? I assume you can save in the background but do you do it at every transaction? How do you implement such a thing? Do you use threads? Or is it quicker just to save without threads? I've never implemented a thread.
Posted
Updated 1-Oct-10 22:33pm
v2
Comments
#realJSOP 2-Oct-10 6:35am    
Save what? Configuration settings?
Brian Bennett 2-Oct-10 19:06pm    
Any change to the document or any configuration setting such as a window placement. Anything and everything, so that no matter what, things come up the way they were before.

1 solution

You will need a timer for this.
You can decide to save the information periodically.
 
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