|
-
Feb 28th, 2013, 01:57 PM
#1
Thread Starter
New Member
[RESOLVED] Control background color conversion help.
Hi all!
I am a recent (This week is my first) convert from VB6 to VB2010. The learning curve has been a little painful, but I seem to have database access and other items in hand. What I am struggling with is background colors on controls at runtime. I am reading a 3rd party database where I cannot alter how the data is stored. A field in the data has the background color stored as what appears to be a Int32. Any suggestions on how to convert this to a value that is acceptable to VB2010 ? I included the hex values below as reference, but how to apply the int value to the BG color is the real issue.
Thanks in advance.
Example#1
Color: Aqua/Cyan (0FFFF)
Database value: 16776960
Example#2
Color: Lt Pink (FF99CC)
Database value: 13408767
Example #3
Color:Med Blue (0082FF)
Database Value: 16744960
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|