I have a piece of code that I need to call a function to save settings. This is what I'm using currently.:
Now when I click on the button it doesn't seem to call the function...what am I doing wrong, I know it's a stupid, easy answer but I can't seem to find information that actually works for me. Thanks.Code:private void exeSaveBut_Click(object sender, EventArgs e) { MainForm exeSave = new MainForm(); exeSave.exeSaveAction(); } ... void exeSaveAction() { MessageBox.Show("VPSM Directory Settings Have Been Saved!", "Settings Saved"); exe42PathBox.Text = Convert.ToString(Settings1.Default.ExePath42); exe50PathBox.Text = Convert.ToString(Settings1.Default.ExePath50); exe52PathBox.Text = Convert.ToString(Settings1.Default.ExePath52); exe60PathBox.Text = Convert.ToString(Settings1.Default.ExePath60); exe62PathBox.Text = Convert.ToString(Settings1.Default.ExePath62); exe70PathBox.Text = Convert.ToString(Settings1.Default.ExePath70); exe71PathBox.Text = Convert.ToString(Settings1.Default.ExePath71); Settings1.Default.Save(); }




Reply With Quote