form not showing
Posted
by Luke
on Stack Overflow
See other posts from Stack Overflow
or by Luke
Published on 2010-04-19T12:11:37Z
Indexed on
2010/04/19
12:13 UTC
Read the original article
Hit count: 337
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();
}
© Stack Overflow or respective owner