Solved

Hex value needed for the Backcolor of a VB 6 form

Posted on 2011-02-21
5
417 Views
Last Modified: 2012-06-21
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.
0
Comment
Question by:gbmcneil
  • 3
  • 2
5 Comments
 
LVL 16

Assisted Solution

by:sjklein42
sjklein42 earned 125 total points
ID: 34946462
Try this syntax for hex numbers in VB:

&H4E5077

0
 

Accepted Solution

by:
gbmcneil earned 0 total points
ID: 34946712
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
 

Author Comment

by:gbmcneil
ID: 34946728
I pushed the wrong button.

sjklein42 is supposed to get the points.

gbmcneil
0
 
LVL 16

Expert Comment

by:sjklein42
ID: 34946748
Thanks.  Glad you got it working.
0
 

Author Closing Comment

by:gbmcneil
ID: 34986556
Thanks again.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question