Sudoku.Form1.textBox2_TextChanged C# (CSharp) Method

textBox2_TextChanged() private method

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