Control colors

  • Thread starter Thread starter Kelvin McKisic
  • Start date Start date
K

Kelvin McKisic

Does anyone know an algorithm to create the correct
border colors and field color for a control based on its
background color? For example, a checkbox has a
background color, the checkboxes border color, and the
checkbox inner color; all based on the background color.

Thanks
 
Kelvin,
Does anyone know an algorithm to create the correct
border colors and field color for a control based on its
background color?

Check out the ControlPaint class and its Dark, DarkDark, Light and
LightLight methods.



Mattias
 
Back
Top