I write this code, but at the time of execution, it tells me an error, it says that this function is dedeclared but it is not used .... why is this error?
private void Button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "samara" && textBox2.Text == "12345")
{
Form2 llamar = new Form2();
llamar.Show();
}
if (textBox1.Text == "carrico" && textBox2.Text == "67890")
{
Form2 llamar = new Form2();
llamar.Show();
}
else {
MessageBox.Show("usuario incorrecto");
}