149 questions
0
votes
2
answers
676
views
How to prevent settings.settings file reset after each new installation
So I have WPF application and I am using settings.settings file to save several settings for example specific Path that the user need to set and I am also create a exe installation file using Advanced ...
0
votes
1
answer
76
views
Why is List<string> being saved in application settings but LinkedList<string> isn't?
This is my Settings.setting file:
<Setting Name="AutoCompleteList" Type="System.Collections.Generic.LinkedList<string>" Scope="User">
<Value ...
1
vote
0
answers
159
views
How to store a special folder path in Settings.settings c#?
I am trying to insert in Settings.settings a special folder path (MyDocuments).
I currently use this: Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) but hardcoded. I don't want to ...
0
votes
1
answer
286
views
WPF: store objects inside application settings.settings file
I build a simple ClipboardManager that hold all last Copy item.
So i have this simple ClipboardItem class:
public class ClipboardItem : INotifyPropertyChanged
{
private string _text { get; set; }
...
1
vote
1
answer
2k
views
Edit contents of Setting File (settings.settings) in DataGridView
I am trying to display the contents of setting.setting file in DataGridView.
I have been successful in doing so by binding the data using BindingSource as follows
BindingSource ...
1
vote
1
answer
1k
views
Set the default settings value during run-time
I use the Properties.Settings.Default to save the user settings of my program. This includes the size and position of the Main Window. See the
Picture here. These represent the default values asigned ...
0
votes
1
answer
2k
views
Adding .settings to .NET Core project
Is it possible to add a .settings file to .NET Core projects in Visual Studio? If not, what's the equivalent/alternative way to achieve this with .NET Core?
6
votes
2
answers
3k
views
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 ...
0
votes
1
answer
60
views
.NET settings - different under debugger
Everytime I am saving settings with Settings.Default.Save, I notice getting different settings when in debugging mode. I assume this is because of the .vshost.exe debugging process.
I think you my ...
0
votes
2
answers
935
views
Configuration system failed to initialize - Settings Designer
i have been searching on how to fix this error. I have just changed my application to use a .Settings file. I have just tried to run it in debug mode and it seems to throw and unhandled exception in ...
2
votes
4
answers
19k
views
C# Setup Project Custom Action to save the installation directory to custom setting file
I am trying to make an application using windows installer as it's install method. When the installation succeeds I want to get the path where the primary output is located that I configured in the ...
0
votes
1
answer
51
views
How should I configure paths to other exe files in my project?
I am working on a project that requires a .exe file to be executed by the application. The problem here is that I cannot guarantee that the file will always be in the same location on the user's ...
1
vote
1
answer
1k
views
Getting settings from an old version
I've got a Winforms app that has quite a few settings (.settings file). These are saved (as far as I can tell) in C:\Users\[User's username]\AppData\Local\[My program name]\[Build or something]\1.0.0....
0
votes
1
answer
41
views
Settings specific to a class
I have a class where I retrieve certain settings from a database (usernames and passwords). This database is sitting on a network, and it means that if the passwords are changed, I can simply change ...
2
votes
0
answers
130
views
Settings.Default returns null after windows 10 upgrade
At my job we want to upgrade all our devices to windows 10. I am in charge of checking some applications we made in c#. The code now throws the following exception when executing this line:
int ...