string转换成color

      FD程序开发 2007-6-19 16:23
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);
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}