Y
Yehia A.Salam
hello,
I'm trying to save simple settingsof my application using the
ApplicationSettings Class:
public Form1(){
InitializeComponent();
Location = Properties.Settings.Default.FormLocation;
Size = Properties.Settings.Default.FormSize;
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e) {
Properties.Settings.Default.FormLocation = Location;
Properties.Settings.Default.FormSize = Size;
Properties.Settings.Default.Save();
}
but for some reason the application always retrieve the initial values and
the Save() method seems not to have any effect.
Thanks
Yehia
I'm trying to save simple settingsof my application using the
ApplicationSettings Class:
public Form1(){
InitializeComponent();
Location = Properties.Settings.Default.FormLocation;
Size = Properties.Settings.Default.FormSize;
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e) {
Properties.Settings.Default.FormLocation = Location;
Properties.Settings.Default.FormSize = Size;
Properties.Settings.Default.Save();
}
but for some reason the application always retrieve the initial values and
the Save() method seems not to have any effect.
Thanks
Yehia