I have an app that saves colors like this: 33023 instead of #FFFFFF
I need to translate this color to #xxxxxx format AND vice versa.
These 2 lines of code work:
'gives me ffff8000
Dim winColor As System.Drawing.Color = System.Drawing.ColorTransl
ator.FromW
in32(33023
)
'gives me #FF8000
Dim winColor1 As String = System.Drawing.ColorTransl
ator.ToHtm
l(winColor
)
*** Now, i need to reverse that and get 33023 back. I tried this and it didnt work:
Dim winColor2 As String = System.Drawing.ColorTransl
ator.FromH
tml(winCol
or1)
How can I do this??
Start Free Trial