i keep getting a error when trying to load a new form on my if statement? at the end of the frm.show();
if (listBox1.FindString(metroTextBox1.Text) != -1)
if (listBox2.FindString(metroTextBox2.Text) != -1)
MessageBox.Show("Found it!");
Form2 frm = new Form2();
frm.Show();
else
{
MessageBox.Show("TRY AGAIN");
}
Aucun commentaire:
Enregistrer un commentaire