string转换成color

it2022-05-09  29

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);

转载于:https://www.cnblogs.com/tuyile006/archive/2007/06/05/772095.html


最新回复(0)