📜  如何使用按钮 c# 代码示例更改文本框的颜色

📅  最后修改于: 2022-03-11 14:49:02.692000             🧑  作者: Mango

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