C#中如何用colorDialog改变label的字体颜色?
1个回答
2013-04-21
展开全部
private void button1_Click(object sender, EventArgs e)
{
if (this.colorDialog1.ShowDialog(this) == DialogResult.OK)
label1.BackColor = colorDialog1.Color;
}
{
if (this.colorDialog1.ShowDialog(this) == DialogResult.OK)
label1.BackColor = colorDialog1.Color;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询