Sudoku.Form1.textBox6_TextChanged C# (CSharp) Method

textBox6_TextChanged() private method

private textBox6_TextChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void textBox6_TextChanged(object sender, EventArgs e)
        {
            if (textBox6.Text != "")
            {
                if (textBox6.Text == textBox5.Text ||
                    textBox6.Text == textBox8.Text ||
                    textBox6.Text == textBox3.Text ||
                    textBox6.Text == textBox1.Text ||
                    textBox6.Text == textBox2.Text ||
                    textBox6.Text == textBox11.Text ||
                    textBox6.Text == textBox9.Text)
                {
                    textBox6.BackColor = Color.Red;
                }
                else
                {
                    textBox6.BackColor = Color.White;
                }
            }
            else
            {
                textBox6.BackColor = Color.White;
            }
            congratulations();
        }
Form1