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 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?
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.
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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";
|
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
|
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...
|
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,...
|
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...
| |
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...
|
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.
|
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
|
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
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |