How find out value for gray color?

  • Thread starter Thread starter Ryan
  • Start date Start date
R

Ryan

When I drew my tabbed form it came out by default in a
gray color.
However when I pick a backgroiund color for my labels,
that gray does not appear. How do I find out this color to
add it to my custom colors list, so I can set the
backgroundcolor of labels to be the same?
 
When I drew my tabbed form it came out by default in a
gray color.
However when I pick a backgroiund color for my labels,
that gray does not appear. How do I find out this color to
add it to my custom colors list, so I can set the
backgroundcolor of labels to be the same?

Open the form in design view.
Right-Click on the section, or control, you wish to copy the color of.
Display the property sheet.
Find the BackColor property line (on the property sheet Format tab).
Copy the BackColor number value.
Paste it into whatever other control's BackColor you wish to have that
color.
 
Just set the labels' BackStyle property to Transparent. Then the form's grey
color will shine through.

Otherwise, the grey color is
12632256
 
Just set the labels' BackStyle property to Transparent. Then the form's grey
color will shine through.

Otherwise, the grey color is
12632256
On your computer, Ken.
On mine it's -2147483633

Your idea of a transparent control is a good idea.
 
Actually, Fred, the number for the color of the background of the detail
section is -2147483633 on my PC as well. The other number I posted also
seems to match this color -- at least, the textbox control "disappears" when
the 12632256 number is used as the control's background color and when the
control has no border.

I'm betting that they're the same color.. < g >
 
FYI from MS Dev Center/Access 2002 Form Tips "Pitfalls to avoid":

"For the BackColor property of form sections and controls, use the
system gray color (-2147483633) rather than the default gray
(12632256). In recent versions of Microsoft Windows® (Windows Me,
Windows 2000, and Windows XP), there's a slight change in the way gray
is displayed, and the older gray appears darker than it should. Mixing
these two values for older Windows versions is not a problem, but you
can see a difference on new versions."

http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28001718
 
Back
Top