VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Convert Common Dialog Control Color to WEB Hex

Charlie Wilson  (1 Submission)   Internet/HTML   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This code takes the common dialog color, extracts the R, G, B values, and
converts each value to the correct HEX equivilant supported by HTML.

Inputs
Function requires a common dialog control color being selected and passed to the function

Assumes
You must add the common dialog control to your application. After the ShowOpen event occurs, pass the color selected by the user to the function: Dim sColHex as String sColHex = HexRGB(cdlCont.color)

Returns
Function returns properly formatted HEX color value for HTML

API Declarations
None

Rate Convert Common Dialog Control Color to WEB Hex (2(2 Vote))
Convert Common Dialog Control Color to WEB Hex.bas

Convert Common Dialog Control Color to WEB Hex Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters