private void textBox2_TextChanged(object sender, EventArgs e)
{
if (textBox2.Text != "")
{
if (textBox2.Text == textBox1.Text ||
textBox2.Text == textBox4.Text ||
textBox2.Text == textBox7.Text ||
textBox2.Text == textBox5.Text ||
textBox2.Text == textBox6.Text ||
textBox2.Text == textBox11.Text ||
textBox2.Text == textBox9.Text)
{
textBox2.BackColor = Color.Red;
}
else
{
textBox2.BackColor = Color.White;
}
}
else
{
textBox2.BackColor = Color.White;
}
congratulations();
}