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