Questions tagged [settings.settings]

Settings.settings is a configuration file in .NET Windows Forms applications. It is used to store application-specific settings which are persisted between user sessions.

Settings consist of four properties (Name, Type, Scope and Value) which can be used to persistently store application specific information between user session.

152 questions
7
votes
4 answers

Storing and editing app,user and custom settings in a desktop applications

I'm building a new version of a windows forms application that is beeing installed on a various range of different pc's. The application is beeing installed by a technician, which are configuring different application, user and other settings during…
6
votes
3 answers

How to change in runtime application settings

I'm trying to change in runtime one key of my applications settings file, but it does not work. I do on that way: ConfigurationSettings.AppSettings["XPTO"] = "HELLO"; It seems that it only changes in memory, not on the file. Does anyone knows how…
rpf
  • 3,612
  • 10
  • 38
  • 47
6
votes
2 answers

Editing/Modifying C# Application Settings

The .NET configuration settings feature is not as flexible as I would like. If I understand Application Settings correctly, I am limited as to when I can change/edit settings. In C#, Application Settings are divided into two different types or…
kmote
  • 16,095
  • 11
  • 68
  • 91
6
votes
2 answers

Can you use Settings.Settings file for ASP.Net sites also?

I have a code base that has been used as an ASP.Net web application. It's now branching out and being used as part of two WinForms applications. The main difference is that the WinForms apps should store their settings "per user" and the web app…
Jared
  • 7,165
  • 6
  • 49
  • 52
6
votes
1 answer

How to merge the applicationSettings of a class library into the host executable's config file

I am reading articles, forum posts about applicationSettings for almost a week now. In almost every thread there was someone that appears to have correctly pointed out that the class libraries cannot have config files when deployed and their…
5
votes
1 answer

Custom data type in Settings.settings as array of class

I searched the web and found how to add specific custom data type in settings. I'm inserting data by my self, not by code while program running. My problem was how to add custom data type to combobox in designer. Now I figured it out and need…
Ondrej Janacek
  • 12,486
  • 14
  • 59
  • 93
5
votes
4 answers

Adding comments to Settings.Designer.cs

I'm using a .Settings file in my Visual Studio 2008 project which auto-generates a Settings.Designer.cs file from the PublicSettingsSingleFileGenerator custom tool. This works fine, but I also want to enable "Warnings as Error" in the compilation…
J_men
  • 387
  • 1
  • 4
  • 14
5
votes
1 answer

update Android provider.Settings.System value

it seen i can't write to settings in LG-P500 (Android 2.2). This is my code: android.provider.Settings.System.putInt(getContentResolver(), android.provider.Settings.System.AUTO_TIME, 1); Value to specify if the user prefers the date, time and time…
user430926
  • 4,017
  • 13
  • 53
  • 77
5
votes
0 answers

Custom type and Settings designer: designer won't write setting value to app.config

Here's what I want to do: Have an application-scoped Settings setting whose value is an array of a custom type Have the array of the custom type serialized to XML as opposed to a string Have the serialized value of my setting saved in…
Ann L.
  • 13,760
  • 5
  • 35
  • 66
4
votes
1 answer

How to get enterprise library configuration and project settings designer reference the same value in app.config

I would like to configure application and user settings using the design time tools in Visual Studio (2010) For example: For the application settings I would like to use the Enterprise Library Configuration tools to manage the values and apply…
4
votes
1 answer

Can you store a generic dictionary in Properties.Settings in 4.0?

The new Dictionary in .net 4.0 is serializable, so... can I now somehow use this in the Settings.Settings or Settings.Designer.cs?
Maslow
  • 18,464
  • 20
  • 106
  • 193
4
votes
1 answer

How do you save an object to a fooSettings.settings file in Visual Studio?

Can you save an object to a settings.settings file in Visual Studio? If so how? I think you can make your object serializable and it should persist, but I'm not sure if I'm doing it right i.e. when I try to get the object back it is always…
Vidar
  • 6,548
  • 22
  • 66
  • 96
4
votes
1 answer

VS2012 Exporting the "User Settings"

I am trying to find a good system to store settings that can be changed by the user. I've tried to use an .ini file but with this I can't seem to save and load some values, like colors. I've also tried to use XML, but that slowed me down so much to…
Yuki Kutsuya
  • 3,968
  • 11
  • 46
  • 63
3
votes
1 answer

Difference in creating settings manually vs using settings.settings in VS 2010

Is there a difference in manually creating your (let's say db connection string) in the config file vs using the settings interface? I have heard that it's safe to use settings interface. Any reasons why?
DNR
  • 3,706
  • 14
  • 56
  • 91
3
votes
2 answers

application settings and settings.settings and configurationmanagers.appsettings oh my

Alright I'm trying to learn all the different options on how to implement application and user settings and it is all very confusing to me. What is the difference between using the settings.settings designer that creates a
cchampion
  • 7,607
  • 11
  • 41
  • 51
1
2
3
10 11