Change a Color to Hex format

By [)ia6l0 iii

Use this simple function to convert a Color to Hex Value

private string ToHexColor(Color c )
{
      return ""#"" + c.ToArgb().ToString(""x"").Substring(2);
}

Change a Color to Hex format  (632 Views)