string str = string.Format("#{0:x6}", color.ToArgb() & 0x00ffffff);
Dim str As String = String.Format("#{0:x6}", color.ToArgb() And &H00FFFFFF)
color = Color.FromArgb(int.Parse(htmlString.Substring(1), System.Globalization.NumberStyles.HexNumber));