Where store application setting value/pairs?

  • Thread starter Thread starter Ronald S. Cook
  • Start date Start date
R

Ronald S. Cook

I want to maintain a list of value/pairs in my Windows application. Where
is the best way to store this? Do I want to use Application Settings and
have a row for each value pair? There will be approx 10 of them... like a
server name/server IP.

I want to be able to bring up those values in a list for a user to choose to
connect to a different server.

Thanks,
Ron
 
I want to maintain a list of value/pairs in my Windows application.
Where is the best way to store this? Do I want to use Application
Settings and have a row for each value pair? There will be approx 10
of them... like a server name/server IP.

Application variables are fine.

However, if you'll be changing the list often, perhaps a custom app.config
section?
 
I want to maintain a list of value/pairs in my Windows application. Where
is the best way to store this? Do I want to use Application Settings and
have a row for each value pair? There will be approx 10 of them... like a
server name/server IP.

I want to be able to bring up those values in a list for a user to choose to
connect to a different server.

Thanks,
Ron

Each progarm has a My.Settings, you can add name/value pairs in Visual
Studio through the Project's settings page. You can change these
values in code, and save them with My.Settings.Save()
As for creating NEW settings on the fly, that's something I'm still
working on.
 
Ronald,

You have to decide if these settings have a high access mode or by instance
only once at startup closing time.

If you take Microsoft as sample, than you will see that they put almost
everything in registry, what is very easy to do with Net.

Cor
 
I want to maintain a list of value/pairs in my Windows application. Where
is the best way to store this? Do I want to use Application Settings and
have a row for each value pair? There will be approx 10 of them... like a
server name/server IP.

I want to be able to bring up those values in a list for a user to choose to
connect to a different server.

Thanks,
Ron

Try
http://www.kjmsolutions.com/xmlsettings.htm
 
Back
Top