how to change the color of a textbox with button csharp

Code Example - how to change the color of a textbox with button csharp

                
                        private void button1_Click(object sender, EventArgs e)
        {
        textBox1.BackColor = Color.Black;
        textBox1.ForeColor = Color.Red;
        }