Linked Questions

-1 votes
3 answers
2k views

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 ...
user2109843's user avatar
1 vote
3 answers
6k views

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 ...
Farid Moraveji's user avatar
-1 votes
3 answers
3k views

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 ...
Dan Cundy's user avatar
  • 2,889
0 votes
1 answer
1k views

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 ...
Mias SilentKiller's user avatar
2 votes
2 answers
496 views

For dot net programs, where is the "right" place to store serialized data? In the /user/username folder? Program Files/MyAppName/? Someplace else?
MrGibbage's user avatar
  • 2,656
0 votes
4 answers
818 views

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 ...
Mr. Lame's user avatar
  • 1,247
0 votes
2 answers
625 views

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 ...
C sharper's user avatar
  • 104
0 votes
0 answers
99 views

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 ...
David's user avatar
  • 43
1 vote
0 answers
64 views

How do I add values to the app.config or web.config's appSettings section in C#?
user3022846's user avatar
0 votes
0 answers
34 views

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 ...
Alper Akca's user avatar
496 votes
11 answers
464k views

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 ...
ant2009's user avatar
  • 22.7k
106 votes
10 answers
288k views

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 ...
Houman's user avatar
  • 66.6k
115 votes
10 answers
155k views

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 ...
Jacky's user avatar
  • 3,289
178 votes
6 answers
109k views

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 --&...
Jader Dias's user avatar
  • 91.1k
76 votes
17 answers
145k views

I am currently working on project using asp.net core v1.1, and in my appsettings.json I have: "AppSettings": { "AzureConnectionKey": "***", "AzureContainerName": "**", "NumberOfTicks": ...
user avatar

15 30 50 per page
1
2 3 4 5
8