winforms - application settings

Costas

Administrator
Staff member
native, there are two ways, both storing the keyvalues to application_name.exe.config

1) wide used, which needs extra reference to System.Configuration.dll
https://learn.microsoft.com/en-us/dotnet/api/system.configuration.configurationmanager.appsettings

NIB8T8m.png
cozy as we can have a function like GetOrDefault on flavor Settings.Settings could not save values.


2) Settings.Settings (use it/good only for readonly, user has to make the changes by hand)

2j3JzHA.png

inside visual studio, you define the keys, then afterwards

IM4iSLa.png

0gpoEBp.png
 
Top