Linked Questions
106 questions linked to/from How can I save application settings in a Windows Forms application?
-1 votes
3 answers
2k views
Persisting Application Settings [duplicate]
The question is quite simple: I have developed a WinForms application using C# .Net 4.0. I want to implement a form where a user can set the settings of the application, like short keys, connection ...
1 vote
3 answers
6k views
c# what is the best way to save configuration data in c# application. [duplicate]
what is the best way to save configuration data in c# application? note that those data maybe changed dynamically. as i know, ConfigurationManager class can be used. but i heard that this is not good ...
-1 votes
3 answers
3k views
Saving changes made to controls on form? [duplicate]
Question How can I save "settings" so that they can be used again after the application has been closed? When I say settings I mean different properties of the controls on my form. What is the ...
0 votes
1 answer
1k views
Save a value of variable in a standalone application [duplicate]
I have a simple string variable and I want to save the value when starting application, the application is a standalone and I don't want to use registery. I tried to put the string as settings but it ...
2 votes
2 answers
496 views
Where should I save my serialized data file? [duplicate]
For dot net programs, where is the "right" place to store serialized data? In the /user/username folder? Program Files/MyAppName/? Someplace else?
0 votes
4 answers
818 views
Best practice to persist config/user info in .NET app [duplicate]
I have a low quantity of data to persist in my .NET app. For example, the file that has been opened last time when the user was around. What is the best practice to persist and retrieve information ...
0 votes
2 answers
625 views
How to save changes to a variable? [duplicate]
I would like to ask you if anyone of you knows how can I save changes in the progrem so when It will be restarted, the changes would remain? for example, I have a boolean variable which his defualt ...
0 votes
0 answers
99 views
Best practice for saving Persistent Settings in C# [duplicate]
I have a C# WinForm that runs a batch file to flash a device through CMD. I have a few variables (mostly file paths, but also a COM port # and a "setup" bool that drives a setup window if they're all ...
1 vote
0 answers
64 views
How do I add appSettings from C# code? [duplicate]
How do I add values to the app.config or web.config's appSettings section in C#?
0 votes
0 answers
34 views
Visual Studio 2019 doesn't save the options of a form app [duplicate]
I also made a Windows forms application in Visual Studio 2019. I've added language options to the app. I choose a language, it is not a problem, but when I close and open the application, the settings ...
496 votes
11 answers
464k views
C# getting the path of %AppData%
C# 2008 SP1 I am using the code below: dt.ReadXml("%AppData%\\DateLinks.xml"); However, I am getting an exception that points to the location of where my application is running from: Could not ...
106 votes
10 answers
288k views
ConfigurationManager.AppSettings - How to modify and save?
It might sound too trival to ask and I do the same thing as suggested in articles, yet it doesn't work as expected. Hope someone can point me to the right direction. I would like to save the ...
115 votes
10 answers
155k views
Read appsettings.json in Main Program.cs
First of all my main purpose is to setup the IP and Port for my application dynamically. I'm using IConfiguration to inject a json config file, like some tutorial mentioned. However, I can't ...
178 votes
6 answers
109k views
Pros and cons of AppSettings vs applicationSettings (.NET app.config / Web.config)
When developing a .NET Windows Forms Application we have the choice between those App.config tags to store our configuration values. Which one is better? <configuration> <!-- Choice 1 --&...
76 votes
17 answers
145k views
ASP.NET Core appsettings.json update in code
I am currently working on project using asp.net core v1.1, and in my appsettings.json I have: "AppSettings": { "AzureConnectionKey": "***", "AzureContainerName": "**", "NumberOfTicks": ...