windows - Variable in c# resource -


this question has answer here:

i working on project , need kind of variable save value , after restarting program, value won't refresh.

for example: home page of web browser when change it, save , after restarting application, won't reset first home page address.

i thought can using application properties settings

properties.settings.default. 

but didn't work.

if setting application wide, , not per user, can use appconfig store value. similiar question asked here.

sample code copied amol m kulkarni:

configuration config = configurationmanager.openexeconfiguration(application.executablepath);     config.appsettings.settings.add("yourkey", "yourvalue");     config.save(configurationsavemode.minimal); 

Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -