Questions tagged [properties.settings]
40 questions
1
vote
2 answers
C# project installer - where are user settings saved in an installation context?
I'm trying to set some user configurations in an installer. For instance, I'm using:
Properties.Settings.Default.mapURL = txtBoxMapURL.Text.Trim();
Properties.Settings.Default.Save();
in a Windows Form that the installer class calls. However,…

David Hodgson
- 10,104
- 17
- 56
- 77
1
vote
1 answer
Save/Read object values using Properties.Settings
I want to save the state of my object when the software exit and restore it when the software loads. Im doing this (code below) now, but I think there must be another bether/smarter way to do that. :)
Ive read a little about Databing, but for this I…

Pedro77
- 5,176
- 7
- 61
- 91
1
vote
2 answers
Where are the application properties settings actually saved or written to?
I am about pull all of my hair at once. Needless to say, I am frustrated. I am coding within Delphi Prism for .NET and currently working to get my application's user-defined properties saved into Application config file. I have setup everything as…

ThN
- 3,235
- 3
- 57
- 115
1
vote
1 answer
Using Properties.Settings.Default as an argument for DisplayName
I am attempting to store values for a displayName attribute from a setting held in the app.config file.
[System.ComponentModel.DisplayName(Properties.Settings.Default.field2Name)]
This does not work because it must be a constant value, which…

Tim
- 1,334
- 2
- 15
- 29
1
vote
1 answer
How to write on Properties.Settings.Default in second Form? C#
So I am trying to modify a Settings Variable I created in my second Form, but it doesn't seem to work. There is no exception thrown or anything, it just straight up doesn't do, as it (in my humble opinion) should.
Here is some Code:
namespace…

Haaani
- 15
- 4
1
vote
2 answers
Is it possible to bind to a value in Properties.Settings.Default?
Is it possible to bind to a value in Properties.Settings.Default in a way that will keep my UI current with the value stored there?
I have a class:
public class FavoritePlayer
{
public string Name
{
get
{
return…

Yes - that Jake.
- 16,725
- 14
- 70
- 96
1
vote
1 answer
Looping through Properties.Settings using a string
Is there a way to loop through Settings using an identifier like the following
for (int i = 1; i < 6; i++)
{
Properties.Settings.Default.["S" + i.ToString()]= 0;//identifier expected
}
To substitute these:
Properties.Settings.Default.S1 =…

Newbie404
- 523
- 4
- 7
1
vote
2 answers
File level locking Properties.Settings
I am pretty new to C# and wanted to save some settings. My application has to be able to run multiple instances therefore it is a possibility of several simultaneous writes to the user.config file. Causing the config file to become corrupted.…

Jerry
- 13
- 5
1
vote
1 answer
Saving user scoped settings (ApplicationSettingsBase)
I am trying to get my application settings to save when a user exits a configuration form (not my mainform). It will keep the settings in memory because when I open the form again, it will have my data that I configured still there, but it will not…

Jondkess
- 13
- 1
- 4
1
vote
0 answers
Config file while debugging with Visual Studio
I am experiencing a frustrating issue.
When I run my application (with Visual Studio 2012) in debug mode (clicking the start button), some variables from the object Settings.Properties.Default have incorrect values and I can't find how to change…

Victor
- 893
- 1
- 10
- 25
1
vote
1 answer
StartProcess using value from Properties.Settings causes Unusual Results
I am seeing odd behavior when trying to launch an application using an application name stored in Properties.Settings. If I don't re-set the value (to the same value) before using it, the launched application will fail to get the correct location…

Wonko the Sane
- 10,623
- 8
- 67
- 92
1
vote
1 answer
How can I get path of user.config from another assambly?
I would like to have only one configuration file for all assemblies that are in my solution. So what is the best way to get the path of user.config from an other assembly?

christophrus
- 1,170
- 2
- 14
- 27
1
vote
1 answer
Properties.Settings - Multiple forms
I have two forms:
MainForm
SettingsForm
As you can imagine, MainForm uses values such as Properties.Settings.Default.Path and SettingsForm should be able to configure such a value on runtime.
But somehow SettingsForm:…

Vyktor
- 20,559
- 6
- 64
- 96
1
vote
1 answer
Using Properties.Settings as a datasource in C# (specifically for a DataGridViewComboBoxColumn)
I have written a GUI application that contains a DataGridView in which users can add new instances of an Arrow class by creating a new line in the view and filling in the new Arrow's properties. One of those properties is called transferType and is…

thegman121
- 71
- 5
0
votes
0 answers
Reading from Properities.Setting.Default as per user decision
I have some different settings type and assigned values which need to read it during the runtime as per the customer choice.
Type of the settings are specializedstringcollection and want to call it from the method ReadString() ;
public static void…

Ali
- 33
- 9