Solved

Hex value needed for the Backcolor of a VB 6 form

Posted on 2011-02-21
5
414 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now