📜  visual studio c# 颜色对话框 - C# 代码示例

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

代码示例1
private void textBox1_Enter(object sender, EventArgs e)
    {
        if (colorDialog1.ShowDialog() == DialogResult.OK)
        {
            textBox1.BackColor = colorDialog1.Color;
        }
    }