Answers for "how to add settings file in c#"

C#
1

c# settings file

// Write Setting
// The scope of the settings file must be set to user in order for it not to be read-only
SettingsFile.Default.MySetting = "A setting";
SettingsFile.Default.Save(); // In order to save all the changes

// Read Setting
string myvalue = SettingsFile.Default.MySetting; // retrieve a setting of type string
Posted by: Guest on July-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language