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()