private void frmMain_FormClosing(object sender, FormClosingEventArgs e) { Properties.Settings.Default.Save(); }