Solved

Hex value needed for the Backcolor of a VB 6 form

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

763 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