M
Mihajlo Cvetanović
Hi all,
I created one WinForm window with some controls on it. Then I connected
Text property of each control to one app setting value (User scope).
Automatic loading of these values works fine, but automatic saving
doesn't work. My current solution for saving values is code like this:
Settings.Default.myControl1 = this.myControl1.Text;
Settings.Default.myControl2 = this.myControl2.Text;
....
Settings.Default.myControlN = this.myControlN.Text;
Settings.Default.Save();
This code works, but it offenses my sense of symmetry (not being
automatic). Is there some automatic way to save settings?
I created one WinForm window with some controls on it. Then I connected
Text property of each control to one app setting value (User scope).
Automatic loading of these values works fine, but automatic saving
doesn't work. My current solution for saving values is code like this:
Settings.Default.myControl1 = this.myControl1.Text;
Settings.Default.myControl2 = this.myControl2.Text;
....
Settings.Default.myControlN = this.myControlN.Text;
Settings.Default.Save();
This code works, but it offenses my sense of symmetry (not being
automatic). Is there some automatic way to save settings?