111,098
社区成员




ColorDialog colorDialog1 = new ColorDialog();
colorDialog1.FullOpen = true; //是否显示ColorDialog有半部分
//colorDialog1.CustomColors = colorDialog1.Color;//设置自定义颜色
DialogResult result = colorDialog1.ShowDialog();
if (result == DialogResult.OK)//确定事件响应
{
Color color_from = colorDialog1.Color;
int a = color_from.R;
int b = color_from.G;
int c = color_from.B;
string str;
str=a.ToString()+" "+b.ToString()+" "+c.ToString()+" ";
MessageBox.Show(str);
}