private void textBox7_TextChanged(object sender, EventArgs e)
{
if (textBox7.Text != "")
{
if (textBox7.Text == textBox1.Text ||
textBox7.Text == textBox2.Text ||
textBox7.Text == textBox4.Text ||
textBox7.Text == textBox8.Text ||
textBox7.Text == textBox3.Text ||
textBox7.Text == textBox15.Text ||
textBox7.Text == textBox3.Text)
{
textBox7.BackColor = Color.Red;
}
else
{
textBox7.BackColor = Color.White;
}
}
else
{
textBox7.BackColor = Color.White;
}
congratulations();
}