Dim c As System.Drawing.Color = System.Drawing.ColorTranslator.FromHtml( " #F5F7F8 " ) Dim strHtmlColor As String = System.Drawing.ColorTranslator.ToHtml(c) 转载于:https://www.cnblogs.com/LCX/archive/2008/05/30/1210964.html