KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is the recommended location to save user preference files? Is there a recommended method for dealing with user preferences? Currently I use the path returned from typeof(MyLibrary).Assembly.Location as a default location to store files generated or required by the application. EDIT: I found two related/interesting questions: Best place to save user information for Windows XP and Vista applications What's the way to implement Save / Load functionality? EDIT #2: This is just a note for people like me who had never used settings before. Settings are pretty useful, but I had to do a whole bunch of digging to figure out what was going on (coming from the Python world, not something I am used too). Things got complicated as I wanted to save dictionaries and apparently they can't be serialized. Settings also seem to get stored in 3 different files depending on what you do. There is an app.config , user.config and a settings.setting file. So here are two more links that I found useful: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/ddeaca86-a093-4997-82c9-01bc0c630138 http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/efe370dc-f933-4e55-adf7-3cd8063949b0/
Tags (comma-separated)
Save Edits
Cancel