Questions tagged [application-settings]

application-settings are global code or data used for configuration

Application settings are used to define key/value pairs for a broad range of data, such as:

  • default values
  • access control
  • file paths
  • protocol handlers
  • localization mappings

References

785 questions
7
votes
4 answers

How to save state of checkbox, textbox and ... after closing a program in c#

In my C# program that is made with Visual Studio 2010 and uses WinForms, I would like the program to save state of some checkboxes and textboxes so the next time program will be loaded they are checked or unchecked as theire last run's state. Also…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
7
votes
9 answers

Where to store application settings?

Recently, I discovered that the "Web.Config" file contains an section which seemed good for storing one's Application Settings. Heck, it even has a programmatic way to access the file thru a standard System library. So being all…
Pretzel
  • 8,141
  • 16
  • 59
  • 84
7
votes
7 answers

.NET different application settings for development and release

I am using VS2010 C#.NET 3.5 and application settings (the Settings.settings file). What I want to do is have different settings for my development and production environments without having to litter my code with conditional statements checking for…
djskinner
  • 8,035
  • 4
  • 49
  • 72
7
votes
5 answers

Multiple applications with different names for the same code base

Reading this article, thought having the same problem - One code base, two applications on Android I have created an application testApp that has items like topics, splash screens, logos, charts, rules, statuses and/or events. Now, I want different…
sjain
  • 23,126
  • 28
  • 107
  • 185
7
votes
5 answers

App.Config vs Custom XML file

I have read a lot of statements like "you shouldn't clog your app.config file with custom settings". However, I was under the impression that this was exactly the purpose of the file? Is it just indeed a preference thing? Or are there any real…
James
  • 80,725
  • 18
  • 167
  • 237
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
2 answers

Is it possible to set config settings on Firefox from a Addon

I'm looking for a way to print from web without prompting the print dialog (I just made the question). I found This method for Firefox and it seems to work, but it obviously will affect all websites. So I'm thinking of developing a Firefox Addon…
6
votes
2 answers

Are there any design patterns for configuration synchronisation

I was wondering if anyone knew of any design patterns, articles or other information for the problem of synchronising settings between multiple devices. Say a web site, an iPhone app and an iPad app; with future devices coming along later. Any…
Dan
  • 1,513
  • 1
  • 24
  • 34
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
1 answer

Using JsonConvert.DeserializeObject on Nested Object

I want to use JSON.Net to handle parsing a configuration file when my application is loaded. Keeping all KVP's in the same scope works absolutely fine. I would however like to break it down into sub-categories such as Settings.WebServer,…
user470760
6
votes
2 answers

Is storing variables in $rootScope good practice?

Update 2: I found a solution I've altered the settings file to just a JS file, added var tempSettings = to the beginning of the file, and added it in index.html. This way it gets loaded with the initial HTML, ensuring it will exist when app.run…
Coo
  • 1,842
  • 3
  • 19
  • 37
6
votes
2 answers

How to remove Settings when uninstalling

My program is installed with a Visual Studio Setup project. The program, when run, creates a user.config file in its default location since I'm using Settings. When uninsalling, how do I get the uninstaller to remove that user.config file? Also, how…
configurator
  • 40,828
  • 14
  • 81
  • 115
6
votes
1 answer

appSettings file attribute equivalent for applicationSettings

In a asp.net web.config file you can do and it will look in local.appSettings.config for any overrides to the foo/bar setting. Is there an equivalent for…
kenwarner
  • 28,650
  • 28
  • 130
  • 173
6
votes
1 answer

How can i start my application as "Run as Administrator" forcefully?

In my application,I am writing some values in application settings file. As i am working with prism I have some module and one shell project. After installing setup Case: 1 When i have not set compatibility mode as "Run as Administrator". Running…
user1584245
6
votes
3 answers

Changing .NET application settings without recompiling

I have a windows service that is referencing another assembly (class library). In this other assembly I used Application Settings to store some values. When I copy all the required files to the server I can see these settings in…
Dean Kuga
  • 11,878
  • 8
  • 54
  • 108