C#中怎么调用颜色对话框

请求详解!

第1个回答  2012-08-31
在工具箱的对话框分组中拖一个ColorDialog控件到窗体上,代码里这样写:
if (this.colorDialog1.ShowDialog() == DialogResult.OK)
{
Color selectedColor = this.colorDialog1.Color;
}
相似回答