Hello i call up a MessageBox when validating some data, if the data is wrong I message the user with a MessageBox with following code:
private void button1_Click(object sender, EventArgs e)
{
if (textBox_name.Text.Trim() != ""
|| textBox_X.Text.Trim() != ""
|| textBox_Y.Text.Trim() != "")
{
if (graph.getNodoNome(textBox_nome.Text.Trim()) != null)
{
MessageBox.Show("Data is wrong?", "Error");
resetTextBoxes();
return;
}
// randome stuff
}
}
My app crash with this, when i remove the MessageBox works fine. Thanks for the help
EDIT: Pastebay link for the entire method http://pastebay.com/82690