settings.settings Questions

3

Solved

I have a class library I want to unit test using Microsofts unit test framework. Some of the classes I want to test are configured using application settings. These settings are defined inside the ...

4

Solved

I would like to use configuration file .settings to save this struct: struct sR22Protocole { Int32 inputkey; Int32 outputkey; Int32 voltage; Int32 Ohm; Int32 Correction; }; In the settings ...
Riorsson asked 23/9, 2013 at 19:47

3

Solved

Sometimes (not always), when I edit a setting in the "My Project" page, when I add one or edit a value from there, I get an error : 'Settings is ambiguous between declaration in Modules '<projec...
Quintet asked 26/10, 2011 at 9:46

6

Solved

There is a way to reset application settings with Settings.Default.Reset() Is there a way to reset only one property? Something like Settings.Default.Properties["MyPropertyName"].Reset();
Vincent asked 2/8, 2012 at 16:6

2

Solved

I've been making a command line tool in c# and we've ended up using a config for some parameters that will only really need setting once. Rather than provide a UI for these I was told to just...
Bred asked 13/1, 2014 at 10:51

5

Solved

I have the following: using CommonSettings = MyProject.Commons.Settings; public class Foo { public static void DoSomething(string str) { //How do I make sure that the setting exists first? ob...
Kitchens asked 10/1, 2011 at 14:27

1

Solved

I've modified my Settings.settings file in order to have system_Filters be a System.String[]. I would like to populate this variable within the Visual Studio designer and not from within the ...

3

Solved

I decided to use Properties.Settings to store some application settings for my ASP.net project. However, when trying to modify the data, I get an error The property 'Properties.Settings.Test' has n...
Scleritis asked 3/10, 2013 at 5:13

4

Solved

I have a setting in my project that, when referenced from code (i.e. i hover over the object I can see the value), is not the same as what is in the Properties.Settings file. It is an old value. I ...
Kosaka asked 6/9, 2011 at 18:14

2

Solved

I'm trying to store a collection of custom objects in the Application Settings. With some help from this related question, here is what I currently have: // implementing ApplicationSettingsBase ...
Maynord asked 7/10, 2011 at 0:27

8

Are there any recommendations on when to use Application settings (not per user settings) vs. .config file <appsettings>? Update Looking to understand some of the finer and important differe...
Acidulent asked 4/6, 2010 at 16:42

4

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 d...

3

Solved

I'm trying to use a settings file to store the user preferences when he/she logins on the application. I defined them as user (scope) but I am getting System.Configuration.ConfigurationErrorsEx...
Udella asked 25/3, 2012 at 21:53

2

Solved

Possible Duplicate: What is the difference between app.config file and XYZ.settings file? I am quite confused by the apparent redundancy of these two mechanisms in Visual Studio to st...
Barbera asked 17/9, 2011 at 16:41

1

Solved

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 can...
Tameshatamez asked 12/4, 2012 at 1:48

2

Solved

I'm just wondering why it's Settings.Default.<mysetting> instead of just Settings.<mysetting>?
Ashanti asked 10/1, 2011 at 13:59

2

Solved

I have an application that needs to store data. Currently, I am using the built-in Application Settings to do it, but it only gives me two choices: application and user scopes. Ideally, I want a "l...

2

Solved

For some reason, I can't seem to store an array of my class into the settings. Here's the code: var newLink = new Link(); Properties.Settings.Default.Links = new ArrayList(); Properties.Setting...
Nephogram asked 3/5, 2010 at 23:41

3

Solved

I have created an application that uses settings.settings to store some user specific settings (scope=User). Settings are loaded correctly on startup, changed during use and saved correctly for nex...
Nitpicking asked 19/3, 2010 at 13:23

2

Solved

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 shou...
Aerie asked 27/6, 2009 at 3:29

3

Solved

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 chan...
Palacios asked 13/2, 2009 at 14:53
1

© 2022 - 2024 — McMap. All rights reserved.