troubleshooting Question

Color Numbers For Screen Background

Avatar of mlcktmguy
mlcktmguyFlag for United States of America asked on
Microsoft Access
7 Comments1 Solution785 ViewsLast Modified:
I like ot have my screen backgroun color stored (and set) in a module that is referened by all screens in the Form Load event.  This way if the user changes their mind or I want to change the backgroun color of all screens I do it in one place.

Since I am using code to set the color I must specify the corresponding color with numbers,  such as:

Public Const cFormBackcolor As Long = 15784923   'pale blue

I know that vbRed, vbBlack etc.. can be used but the user will usually specify something more custom.  Is there any way to detrmine the numerical equivalent of a color?   I'm guessing the numbers somehow break down into a red, green and blue component.  Can I create a color in the custom pallette of the color selector and soemhow know what number corresponds to that color?

Private Sub Form_Load()
Update_Form_Controls Me
End Sub
ASKER CERTIFIED SOLUTION
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Database Architect / Application Developer
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros