Do you have to call .Save() when modifying a application setting that is bound to a control property
Posted
by Jordan S
on Stack Overflow
See other posts from Stack Overflow
or by Jordan S
Published on 2010-03-26T13:00:09Z
Indexed on
2010/03/26
13:03 UTC
Read the original article
Hit count: 138
I am programming in .NET
I have an application setting of type string.
On my form I have a textbox. I bound the text property of the textbox to my application setting. If I type something in the textbox it changes the value that is held in the Application setting but the next time I start the program it goes back to the default value. Do I need to call Properties.Settings.Default.Save();
after the text is entered for the new value to be saved? Shouldn't it do this automatically? Is there a way I can make it do it automatically?
© Stack Overflow or respective owner