473,498 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple app settings

Hi

My app has settings that are stored in the app configuration file. Is there
a way to select a different set of app settings for different pcs, either
during setup or when app is run for the first time?

Thanks

Regards
Aug 13 '08 #1
4 2127
use a xml file
"John" <in**@nospam.infovis.co.ukwrote in message
news:eU**************@TK2MSFTNGP04.phx.gbl...
Hi

My app has settings that are stored in the app configuration file. Is
there a way to select a different set of app settings for different pcs,
either during setup or when app is run for the first time?

Thanks

Regards

Aug 13 '08 #2
John,

there are two kinds of app settings, and two different locations where
those settings get stored. First there are application settings, which
are, by default, read only and stored in the config file where
application is installed. Then there are user-scoped settings, which
gets saved in current user's document folder - those can be changed by
the application in runtime. If you can set up your default settings
when application is first run, you can use user-scoped settings to
save them.

You can also create a custom settings provider to store those settings
in any source you need, for example, one common scenario is that
user's settings are stored in a database so users can access them from
any pc where that application is run.

To better understand your scenario, could you please explain what kind
of settings would you like to be applied "per pc" instead "per user"?

Andrej

On 13 avg., 04:15, "John" <i...@nospam.infovis.co.ukwrote:
Hi

My app has settings that are stored in the app configuration file. Is there
a way to select a different set of app settings for different pcs, either
during setup or when app is run for the first time?

Thanks

Regards
Aug 16 '08 #3
Hi Andrej

Many thanks.My app has separate settings for a laptop which can be
disconnected at times and for desktop that will be always connected. Certain
settings and paths are different based on the pc type the app is being
installed on. If I can choose the set of settings during setup or at first
run that would be great.

Thanks

Regards

"Andrej Tozon" <an**********@gmail.comwrote in message
news:ce**********************************@c65g2000 hsa.googlegroups.com...
John,

there are two kinds of app settings, and two different locations where
those settings get stored. First there are application settings, which
are, by default, read only and stored in the config file where
application is installed. Then there are user-scoped settings, which
gets saved in current user's document folder - those can be changed by
the application in runtime. If you can set up your default settings
when application is first run, you can use user-scoped settings to
save them.

You can also create a custom settings provider to store those settings
in any source you need, for example, one common scenario is that
user's settings are stored in a database so users can access them from
any pc where that application is run.

To better understand your scenario, could you please explain what kind
of settings would you like to be applied "per pc" instead "per user"?

Andrej

On 13 avg., 04:15, "John" <i...@nospam.infovis.co.ukwrote:
>Hi

My app has settings that are stored in the app configuration file. Is
there
a way to select a different set of app settings for different pcs, either
during setup or when app is run for the first time?

Thanks

Regards

Aug 17 '08 #4
Hi John,

have a look at the System.Configuration namespace and

http://www.codeproject.com/KB/dotnet...iguration.aspx
http://www.codeproject.com/KB/dotnet...guration2.aspx
http://www.codeproject.com/KB/dotnet...guration3.aspx

Regards
Ralf

"John" <in**@nospam.infovis.co.ukschrieb im Newsbeitrag
news:eU**************@TK2MSFTNGP04.phx.gbl...
Hi

My app has settings that are stored in the app configuration file. Is
there a way to select a different set of app settings for different pcs,
either during setup or when app is run for the first time?

Thanks

Regards

Oct 11 '08 #5

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

Similar topics

2
11173
by: AMT2K5 | last post by:
Hello. When I compile my program I recieve lots and lots of the following message which I am trying to decipher. "xxx was declared deprecated". What exactly does that mean?
1
5857
by: DraguVaso | last post by:
Hi, I found some examples for storing the FormSettings of a Form in an XML-file, but none of these could match my criteria: What I am looking for is the possibility to save the FormSettings of...
11
5259
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings...
6
539
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
5
10491
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
5
10980
by: George | last post by:
Hi, Is it possible to specify the location of a web.config file in an ASP.NET application? I have one ASP.NET application which is to be hosted on 2 web sites in the same web server. I want...
9
2752
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
6
4957
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
5
2214
by: vj | last post by:
Hi all, I am using C++Builder-5. I want to run multiple cpp files at the same time. If I use the C++Builder for running a cpp file (i.e., I just double click the cpp file, it then opens in the...
0
7125
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,...
0
7203
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...
1
6885
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...
1
4908
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
4588
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
3093
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...
0
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1417
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 ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.