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 / Design Time / November 2007

Tip: Looking for answers? Try searching our database.

Best practices to store environment or user options

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Earl - 22 Nov 2007 01:27 GMT
.Net Winforms app. I'm currently using the database to store user options.
But I wonder if there is a better, faster technique. For a simple example,
look at the Visual Studio 2005 Tools > Options screens ... are all of these
choices being saved XML, a database or where? Is the OK button a "Save"
button or are the changes committed at the time you check/uncheck? I'm doing
everything Winforms and while my system works well, I'm always looking for
fewer trips across the network (so long as it doesn't come at a price!).
newscorrespondent@charter.net - 22 Nov 2007 14:21 GMT
The stock anwer is "It depends" on what your requirements are. If the
clients of your application don't always work on the same computer a
database is a good choice. When they always work on the same machine you can
use the app.config file.
jay parzych - 22 Nov 2007 14:49 GMT
i use the Isolated Storage Settings Helper found here:

http://idesign.net/idesign/DesktopDefault.aspx?tabindex=5&tabid=11

Smart client applications often need to store application settings in a
partial trust environment. For strongly typed settings building
applications with Visual Studio 2005, user settings can be written in
partial trust once .NET 2.0 releases. In addition, sometimes you may
need to store ad-hoc settings in separate files and you may not want to
use user settings for those settings. Isolated storage provides a good
place to put custom settings that can be written to in partial trust.
This helper class allows you to read and write custom settings

simple to use

> The stock anwer is "It depends" on what your requirements are. If the
> clients of your application don't always work on the same computer a
> database is a good choice. When they always work on the same machine you can
> use the app.config file.
Earl - 22 Nov 2007 14:57 GMT
Thanks to both for the ideas.

>i use the Isolated Storage Settings Helper found here:
>
[quoted text clipped - 16 lines]
>> can
>> use the app.config file.

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.