Sudoku.Form1.textBox5_TextChanged C# (CSharp) Method

textBox5_TextChanged() private method

private textBox5_TextChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        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();
        }
Form1