MortenWennevik
Thu Feb 21 02:22:01 CST 2008
Hi Daniel,
Since that thread was made, .Net 2.0 and Visual Studio 2005 came with a type
safe
settings file directly accessible in code.
http://msdn2.microsoft.com/en-us/library/aa730869(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/cftf714c(VS.80).aspx
IsolatedStorage provides a place to store data even if the user has minimal
security priviliges and works like a regular directory exception you need to
stream everything.
There is also the System.Environment.SpecialFolder folders that provide an
easy way to get user
specific folders.
If you have project data, like a Visual Studio project I would probably go for
System.Environment.SpecialFolder.MyDocuments for the projects and store the
user settings in a settings
file.
--
Happy Coding!
Morten Wennevik [C# MVP]
"daniel.divita@gmail.com" wrote:
> On Feb 20, 4:41 pm, daniel.div...@gmail.com wrote:
> > I know this has been discussed before, but I really need a good
> > example of how this works. I am developing an application that houses
> > some user preferences and also will allow the user to save the entire
> > project to a file. Instead of creating XML files that will be saved to
> > a directory, what is the best way to combine all that information into
> > one binary file? I have read about IsolatedStorage and Serialization,
> > but the examples I have seen are too vague or don't apply to what I am
> > doing. Any help is appreciated.
> >
> > Daniel
>
> I found this article which helped:
>
http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms/browse_thread/thread/6293ec7b15c32ba3/4fb9098885d4f458?lnk=gst&q=saving+project+isolatedstorage#4fb9098885d4f458
>
> Does anybody else have another suggestion?
>
> Daniel
>