flyinghippo99
Registered User.
- Local time
- Today, 06:46
- Joined
- Feb 28, 2011
- Messages
- 53
Hey Guys,
So, I got a label created from using CreateControl. Let's call the label ctl.
I can set the Name, FontBold, Caption, etc. just fine.
However, I'm running to a problem setting the BackColor. I've did a search on MSDN and tried their examples as well as the examples on this forum and no color is set!
So, I tried this approach:
Dim lngRed as Long
lngRed = RGB(255,0,0)
ctl.BackColor = lngRed
I also tried
ctl.BackColor=RGB(255,0,0)
ctl.BackColor = vbRed.
None of that worked! And the color I want is not Red(but I only know the coding for red. hehe). The color I want is called "Background Dark Header" as it's called from the Property Sheet Format section for the label. But what is "Background Dark Header" equivalent to in numerical or RGB format? Is there even a lookup table for the various colors and their associated RGB codes? I couldn't find one.
Thanks!
flyinghippo
So, I got a label created from using CreateControl. Let's call the label ctl.
I can set the Name, FontBold, Caption, etc. just fine.
However, I'm running to a problem setting the BackColor. I've did a search on MSDN and tried their examples as well as the examples on this forum and no color is set!
So, I tried this approach:
Dim lngRed as Long
lngRed = RGB(255,0,0)
ctl.BackColor = lngRed
I also tried
ctl.BackColor=RGB(255,0,0)
ctl.BackColor = vbRed.
None of that worked! And the color I want is not Red(but I only know the coding for red. hehe). The color I want is called "Background Dark Header" as it's called from the Property Sheet Format section for the label. But what is "Background Dark Header" equivalent to in numerical or RGB format? Is there even a lookup table for the various colors and their associated RGB codes? I couldn't find one.
Thanks!
flyinghippo