System.StackOverflowException by forms

Posted by simon on Stack Overflow See other posts from Stack Overflow or by simon
Published on 2010-04-28T08:53:40Z Indexed on 2010/04/28 9:13 UTC
Read the original article Hit count: 507

Filed under:
|

I'm trying to open another form with a button and it's only ok at the beginning. After a few forms made the stackoverflow error acours ! i get errors everytime i declare a new form, like this:

Form5 add_meal = new Form5();

private void button1_Click(object sender, EventArgs e)
{
    add_meal.Show();
    this.Hide();
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-forms