Sudoku.Form1.textBox9_TextChanged C# (CSharp) Method

textBox9_TextChanged() private method

private textBox9_TextChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void textBox9_TextChanged(object sender, EventArgs e)
        {
            if (textBox9.Text != "")
            {
                if (textBox9.Text == textBox12.Text ||
                    textBox9.Text == textBox16.Text ||
                    textBox9.Text == textBox13.Text ||
                    textBox9.Text == textBox2.Text ||
                    textBox9.Text == textBox6.Text ||
                    textBox9.Text == textBox11.Text ||
                    textBox9.Text == textBox10.Text)
                {
                    textBox9.BackColor = Color.Red;
                }
                else
                {
                    textBox9.BackColor = Color.White;
                }
            }
            else
            {
                textBox9.BackColor = Color.White;
            }
            congratulations();
        }
Form1