VB color value

Leginus

Member
Licensed User
Longtime User
I have searched the forums but cannot seem to find an answer.
Is it possible to convert the long color values from vb into rgb??

e.g. txtTestBox.BackColor = 16777215

I found a solution on google but it was using the Hex keyword and I don't think that is supported yet.

thanks
 

Leginus

Member
Licensed User
Longtime User
Thanks that is just what i was looking for. Obviously i didnt read the forum well enough :sign0104:
 

Leginus

Member
Licensed User
Longtime User
Thanks all, I have also noticed that I don't actually need to convert it either. I can use the same value and it works, although RGB is preferable personally.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…