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