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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top