Perhaps this has something to do with the fact that this is mainForm, but I will ask a question. I have my mainForm, which first loads when the program loads.
Then I click the "Add" button, which should open a new form and close mainForm.
The problem is that it displays a new shape for a second, and then closes both.
The code:
private void addFrmBtn_Click(object sender, EventArgs e) { saveForm saveform = new saveForm(); saveform.Show(); this.Close(); }
source share