Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 425
  • Last Modified:

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.
0
gbmcneil
Asked:
gbmcneil
  • 3
  • 2
2 Solutions
 
sjklein42Commented:
Try this syntax for hex numbers in VB:

&H4E5077

0
 
gbmcneilAuthor 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
 
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

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.  

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now