form not showing
- by Luke
Perhaps this has something to do with it being the mainForm, but I'll ask the question.
I have my mainForm that is the first to load when the program is booted.
I then click a button called Add, which should open a new form, and close the mainForm.
The problem is, is shows the new form for a split second, then closes both.
The code:
private void addFrmBtn_Click(object sender, EventArgs e)
{
saveForm saveform = new saveForm();
saveform.Show();
this.Close();
}