c# - Properties.Settings will not be saved -


i'm trying save 2 user values (sliderwidth , sliderheight). want visual studio option settings.

the visual studio option settings

when debug this code:

    public void test(int value)     {         properties.settings settings = properties.settings.default;         settings.sliderwidth = value;         settings.save();     } 

the values ​​do not change (after program ended).

what's wrong?

it works. try this:

public void test(int value) {     properties.settings settings = properties.settings.default;      messagebox.show("last sliderwidth = " + settings.sliderwidth.tostring());      settings.sliderwidth = value;     settings.save(); } 

but saved value won't reflected in designer window showing in screen shot. initial default values.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -