473,467 Members | 1,477 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Where store application setting value/pairs?

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
Feb 19 '07 #1
4 1823
"Ronald S. Cook" <rc***@westinis.comwrote in
news:uh**************@TK2MSFTNGP02.phx.gbl:
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?
Feb 19 '07 #2
On Feb 19, 7:01 am, "Ronald S. Cook" <r...@westinis.comwrote:
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.

Feb 19 '07 #3
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

"Ronald S. Cook" <rc***@westinis.comschreef in bericht
news:uh**************@TK2MSFTNGP02.phx.gbl...
>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

Feb 20 '07 #4
On Feb 19, 6:01 am, "Ronald S. Cook" <r...@westinis.comwrote:
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

Feb 20 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bagsmode | last post by:
Hi, I'm trying to set a session cookie and then redirect, however I get the error: Status: 302 Moved Location: /index.cgi I thought I recall getting an error like this when I first tried...
6
by: Andrea Williams | last post by:
Where is the best place to put global variables. In traditional ASP I used to put all of them into an include file and include it in every page. Will the Global.aspx.cs do that same thing? ...
4
by: Chris Newby | last post by:
My project currently requires that I integrate an ASP.NET application with an ASP application. One of the issues I'm having is that I have some very long strings being created in an ASP.NET...
0
by: Harley | last post by:
I am trying to write a personal app to keep a bank balance and history. The problem I'm haveing is finding a decent way to store the data on a pocketpc under .net compact framewok useing vb.net....
10
by: Paul Cheetham | last post by:
Hi, I am developing an application that needs to store some machine-specific settings. The application is going to be published on the network in order to keep the clients on the latest version....
1
by: jack | last post by:
I have an application wide configuration setting (pages theme) that is dynamic. Normally when you think of picking themes you think of the user selecting a theme (a per-user setting). In this...
1
by: raz230 | last post by:
I have a vb.net project. I am using app.config to store some data that I want the user to be able to change. I do this: My.Settings.Host = txtURL.text.trim My.Settings.Save My.Settings.Reload...
8
by: =?Utf-8?B?Y2FsZGVyYXJh?= | last post by:
Dear all, I am building a set of libraries working in a n tiers architecture Some of those libraries use common configuration settings like the database connection string and some others. I...
3
by: JCCDevel | last post by:
Hi All, I'm not too proficient in Javascript but am trying to help a friend out. Bascially, the page we are having trouble with is loaded with a numerical value in the url string. Example: ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.