By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,663 Members | 1,791 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,663 IT Pros & Developers. It's quick & easy.

How to set a background color with certain HEX, DEC or RGB value?

P: n/a
I have a HEX, DEC and RGB value of the color I want for my form
background. How to set it, as I am only able to use one of the standard
colors.

Bart
(v 2003)

Feb 18 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"AA Arens" <ba***********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I have a HEX, DEC and RGB value of the color I want for my form
background. How to set it, as I am only able to use one of the standard
colors.

Bart
(v 2003)

Me.Detail.BackColor = RGB(120, 180, 180)
Me.Detail.BackColor = &H60A0A0

Me.Detail.BackColor = 11842680

?rgb(120,180,180)
11842680

?vbgreen
65280

HTH -
--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
Feb 18 '06 #2

P: n/a
Thanks Randy it works with:

Private Sub Form_Current()
Me.Detail.BackColor = RGB(50, 170, 245)
End Sub.

I do have forms with header and footer forms. How to get them also the
right color with Me.Detail.BackColor?

But the header/footer has no "Current"


I put the Me.Detail.BackColor = RGB(120, 180, 180) command in Form

Feb 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.