网上看到这种方法, 赶快记录下来 免得忘记了
string转换成color
string col = "#FF8400";
this.BackColor = System.Drawing.ColorTranslator.FromHtml(col);
color转换成string
Color mycolor = this.BackColor;
string strcol = System.Drawing.ColorTranslator.ToHtml(mycolor);
MessageBox.Show(strcol);
顺便外加一种方法
Color.FromName("Red"); 这也是可以直接转换的