473,836 Members | 2,244 Online
Bytes | Software Development & Data Engineering Community
+ 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 1840
"Ronald S. Cook" <rc***@westinis .comwrote in
news:uh******** ******@TK2MSFTN GP02.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.Sav e()
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******** ******@TK2MSFTN GP02.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
9179
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 performing a redirect when I had left in print "Content-type:text/html\n\n";
6
3636
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? Thanks in Advance! Andrea
4
404
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 application that need to somehow appear in a classic ASP session. The strings are too long for cookies or URLs and I'd like to avoid using a database or someother temporary server storage. So far what I've come up with is a .NET class that "spoofs" a...
0
2223
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. I need to store type, date, description, and total for each check/debit transaction as well as a balance and user settings. My problem is that I am learning vb.net now and I'm not ready to move into datbases yet so xml seems my only viable option,...
10
4285
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. Because of this, I am unable to store these settings in the App.Config file, as this gets updated every time the application does, and there doesn't appear to be a way of preventing this. Most of my application settings are kept in the...
1
2055
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 case, though, I want the site owner to be able to select a theme that will be applied to the entire site (not per user). I do not want to programmatically write out/edit the web.config file because of permissions issues. I simply want the user to be...
1
2178
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 This is sort of working. If I close an re-open the application, my settings are there.
8
1658
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 can imgaine that I can get one config file per buisness library. What is teh best way and where to store configuration files ? Should I get only one with everything in and located in a particular common
3
1233
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: http://www.webpage.com/v4/payment_pg.php?FeeCalcTotalDecimal%20=49.50 I then parse the string to get the total. I then want to assign the value to a hidden form value
0
9810
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9656
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10527
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10241
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4441
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 we have to send another system
2
4001
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3102
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.