Hex value needed for the Backcolor of a VB 6 form

Hello Experts -

Can you tell me what a valid hex value would be for a RGB(78,80,119)?

I have a hex converter utility that tells me the value should be 0x0076504E, but VB 6.0 doesn't like that in the Property Sheet. It doesn't like #4E5077 either.
gbmcneilAsked:
Who is Participating?
 
gbmcneilConnect With a Mentor Author Commented:
sjklein42 -

Thanks for responding.

The value you provided was accepted by VB, but it was not the color I desired. It was looking for a color that was originally purple and ended up with strawberry.

However, your suggestion inspired me to try &H0076504E& - which is my first try with the "0x00" replaced by "&H00"  and adding an ampersand at the end. This worked and you get the prize.
0
 
sjklein42Connect With a Mentor Commented:
Try this syntax for hex numbers in VB:

&H4E5077

0
 
gbmcneilAuthor Commented:
I pushed the wrong button.

sjklein42 is supposed to get the points.

gbmcneil
0
 
sjklein42Commented:
Thanks.  Glad you got it working.
0
 
gbmcneilAuthor Commented:
Thanks again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.