Thursday, November 29, 2012

ASPX Convert RGB to Hex Color with VB


    Private Function RGB_2_HEX(ByVal R As Byte, ByVal G As Byte, ByVal B As Byte) As String
        Return "#" & Hex(Color.FromArgb(R, G, B).ToArgb).Substring(2)
    End Function

No comments:

Post a Comment