?
Solved

Hex value needed for the Backcolor of a VB 6 form

Posted on 2011-02-21
5
Medium Priority
?
421 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 16

Assisted Solution

by:sjklein42
sjklein42 earned 500 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 Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

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:…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

770 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