Questions tagged [properties.settings]
40 questions
7
votes
1 answer
how to get Properties.Settings.Default with a string?
I have a Winforms/C# application and I am migrating from xml configuration file to application settings. I would like to know if it is possible to access dynamically application settings (Properties.Settings.Default).
I have 4 configurations…

user3894648
- 73
- 1
- 1
- 3
6
votes
3 answers
Looking for a shurtcut of Properties.Settings.Default
The more options I have defined, the more a have to type when I have to modify them. So I'm looking for a shorter version of Properties.Settings.Default.varX
I tried:
Properties.Settings settings = Properties.Settings.Default;
settings.var1 =…

christophrus
- 1,170
- 2
- 14
- 27
4
votes
3 answers
How can I save the state of a group of Radio Buttons in my program?
I have two groups of radio buttons (2 groups of 4 buttons), which I would like to save the checked status of and load the checked status as soon as the program/main form loads up. The radio buttons are NOT on the main form.
How can I do this using…

Toby
- 377
- 1
- 10
- 23
4
votes
2 answers
Properties.Settings.Default.Save() store the user.config file in a directory with a hash
I try to save user settings. To save some data I used this code:
Properties.Settings settings = Properties.Settings.Default;
settings.Key1 = "value";
settings.Save();
but it saves the user.config file under the following…

David
- 4,027
- 10
- 50
- 102
3
votes
1 answer
how to change default path for Properties.Settings
Whenever I do Properties.Settings.Save(), it commites the properties changes to Application.LocalUserAppDataPath but I want the path to be Application.CommonAppDataPath.
where
Application.CommonAppDataPath =
C:\Documents and Settings\**All…
Gokul Sankar
3
votes
1 answer
Windows service properties.settings.default location?
I have built a Windows service app that's installed and running. During debugging while the service is running, I have found that when I import the properties.settings.default and modify it, it is not saved to the app.config file in my project…

user2367868
- 97
- 1
- 8
3
votes
3 answers
Setting a C# Properties.Settings value to spaces only fails
It seems that the user.config file for Properties.Settings can handle an empty string value correctly using a tag, but a value consisting of one ore more spaces only, (for example " ") does not get stored as...
…

JDR
- 51
- 3
3
votes
1 answer
Visual Studio Project: Properties/Settings.settings Missing
I've checked out a solution from source control and opened it in Visual Studio. My assumption is that this solution compiled at one time (two years ago) and was deployed.
There is a project that contains datasets which I will call the "dataset…

ZuluAlphaCharlie
- 287
- 1
- 4
- 13
3
votes
1 answer
C# Application reads wrong settings on load
I have this rater simple application, where I use settings.
For that, I have created my own Properties settings file.
So far so good. That works all well. The settings are there and I can use them.
I am trying to be able to change these settings at…

stallemanden
- 31
- 2
2
votes
1 answer
Can not save changes to properties.settings
I'm trying to use properties.settings for the first time in a C# WPF project.
I have this code:
Settings.Default.comPort = "";
Settings.Default.baudRate = 9600;
Settings.Default.startUp = false;
Settings.Default.taskBar =…

Amir
- 1,885
- 3
- 19
- 36
2
votes
5 answers
How to add Properties.Settings.Default in c#
I am not able to write "Properties.Settings.Default". It is not coming in the dropdown list. Is there any namespace that we can add?

B.Vyas
- 43
- 2
- 8
2
votes
1 answer
c# Properties.Settings.Default Doesn't work as expected
I've been working on a program to automate my backup checks with LogMeIn backup (a windows forms based program). I now need a way to store user settings, to save information easily. I've never worked with the Application/User settings that is…

Jack
- 9,156
- 4
- 50
- 75
2
votes
1 answer
Settings in MvvmCross Core assembly?
In porting my WPF MVVM app to MvvmCross, what would be the recommended approach for persistent user settings in the Core assembly? Currently I'm using Properties.Settings for this task. Ideally, I'd like a solution that can play nicely with…

HolySamosa
- 9,011
- 14
- 69
- 102
2
votes
2 answers
Viewing Properties.Settings.Default variables
I am trying to use Settings.settings to define/persist some vars. For brevity, I've set up a test file to demonstrate the behavior I'm seeing:
First, I define a setting in Settings.settings:
I then have the following code to test changing…

LovinItAll
- 133
- 1
- 2
- 8
2
votes
3 answers
Using Settings Class in C#
I am using the Properties.Settings class to save the application settings. I would like to know, once I deploy in the client system, whether the settings would be saved across application restart and system restart.
Consider the scenario :
Once the…

Kiran
- 8,034
- 36
- 110
- 176