Control colors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kelvin McKisic

    #1

    Control colors

    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
  • Mattias Sjögren

    #2
    Re: Control colors

    Kelvin,
    [color=blue]
    >Does anyone know an algorithm to create the correct
    >border colors and field color for a control based on its
    >background color?[/color]

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



    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org

    Please reply only to the newsgroup.

    Comment

    • Kelvin McKisic

      #3
      Re: Control colors

      Thanks!
      [color=blue]
      >-----Original Message-----
      >Kelvin,
      >[color=green]
      >>Does anyone know an algorithm to create the correct
      >>border colors and field color for a control based on [/color][/color]
      its [color=blue][color=green]
      >>background color?[/color]
      >
      >Check out the ControlPaint class and its Dark, DarkDark, [/color]
      Light and[color=blue]
      >LightLight methods.
      >
      >
      >
      >Mattias
      >
      >--
      >Mattias Sjögren [MVP] mattias @ mvps.org
      >http://www.msjogren.net/dotnet/
      >Please reply only to the newsgroup.
      >.
      >[/color]

      Comment

      Working...