J
jrhoads23
If you look at a standard Button in a .NET Windows Forms app, you will
notice its default BackColor is "Control" and it has a 3D raised border
which is 2 pixels wide. The outer edge on the left and top is
"ControlLightLight" color and the inner edge on the left and top is
"ControlLight". The outer edge on the right and bottom is
"ControlDarkDark" and the inner edge on the right and bottom is
"ControlDark". All of these colors are defined as KnownColors in the
System.Drawing namespace.
My question is this, when you change the BackColor of the button to
"Red", the border colors are adjusted as well. The top and left is made
slightly lighter versions of red while the bottom and right are made
slightly darker versions of red.
How can I take a given color such as Red, Green, ... and get their
slightly lighter and darker versions? There doesnt appear to be any
methods in the Color structure or ColorConverter class.
Any ideas?
notice its default BackColor is "Control" and it has a 3D raised border
which is 2 pixels wide. The outer edge on the left and top is
"ControlLightLight" color and the inner edge on the left and top is
"ControlLight". The outer edge on the right and bottom is
"ControlDarkDark" and the inner edge on the right and bottom is
"ControlDark". All of these colors are defined as KnownColors in the
System.Drawing namespace.
My question is this, when you change the BackColor of the button to
"Red", the border colors are adjusted as well. The top and left is made
slightly lighter versions of red while the bottom and right are made
slightly darker versions of red.
How can I take a given color such as Red, Green, ... and get their
slightly lighter and darker versions? There doesnt appear to be any
methods in the Color structure or ColorConverter class.
Any ideas?