Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2008

Tip: Looking for answers? Try searching our database.

Save user preferences?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
daniel.divita@gmail.com - 20 Feb 2008 21:41 GMT
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
daniel.divita@gmail.com - 20 Feb 2008 22:18 GMT
> 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
[quoted text clipped - 6 lines]
>
> Daniel

I found this article which helped:
http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms/br
owse_thread/thread/6293ec7b15c32ba3/4fb9098885d4f458?lnk=gst&q=saving+project+is
olatedstorage#4fb9098885d4f458


Does anybody else have another suggestion?

Daniel
Morten Wennevik [C# MVP] - 21 Feb 2008 08:22 GMT
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.

Signature

Happy Coding!
Morten Wennevik [C# MVP]

> > 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
[quoted text clipped - 13 lines]
>
> Daniel

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.