Sudoku.Form1.textBox8_TextChanged C# (CSharp) Method

textBox8_TextChanged() private method

private textBox8_TextChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void textBox8_TextChanged(object sender, EventArgs e)
        {
            if (textBox8.Text != "")
            {
                if (textBox8.Text == textBox5.Text ||
                    textBox8.Text == textBox6.Text ||
                    textBox8.Text == textBox3.Text ||
                    textBox8.Text == textBox4.Text ||
                    textBox8.Text == textBox7.Text ||
                    textBox8.Text == textBox14.Text ||
                    textBox8.Text == textBox16.Text)
                {
                    textBox8.BackColor = Color.Red;
                }
                else
                {
                    textBox8.BackColor = Color.White;
                }
            }
            else
            {
                textBox8.BackColor = Color.White;
            }
            congratulations();
        }
Form1