44问答网
所有问题
C#中如何用colorDialog改变label的字体颜色?
我不知道colorDialog控件如何用,怎样可以改变label控件的颜色?求详细代码?
举报该问题
推荐答案 2013-04-21
private void button1_Click(object sender, EventArgs e)
{
if (this.colorDialog1.ShowDialog(this) == DialogResult.OK)
label1.BackColor = colorDialog1.Color;
}
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://44.wendadaohang.com/zd/3V6GWGW3K.html
相似回答
大家正在搜