[RESOLVED] application settings
evidently i didn't know what i was doing. I am working on a simple game and wanted to save the high score in application settings. Research upon failure has shown that user is read/write but the program doesn't store it between runs. What am i missing?
Re: [RESOLVED] application settings
ok i found it. It was checked. So i don't know what the issue was, except that i almost always was shutting it down by closing it in the ide.
Re: [RESOLVED] application settings
Quote:
Originally Posted by
Lord Orwell
ok i found it. It was checked. So i don't know what the issue was, except that i almost always was shutting it down by closing it in the ide.
That would be the issue then. If you want to satisfy your curiosity, check the box and don't call Save, then exit the application normally. You should find that the setting(s) is persisted.
The only time that saving explicitly would be advantageous is if the OS shuts down without warning, e.g. power failure. Even an unhandled exception shouldn't be an issue because you should be handling the UnhandledException event, so the app will still shut down normally and settings will be saved.