For instance, to make something blue I would go:
this.BackColor = Color.LightBlue;
How can I summon the Control color, the khaki one.
Thanks SO.
Most forms have a BackColor that defaults to "Control", which looks like a very light gray under Windows 7, running the default Windows 7 Theme.
The BackColor property is an ambient property. An ambient property is a control property that, if not set, is retrieved from the parent control. For example, a Button will have the same BackColor as its parent Form by default.
Color control is the process of controlling color throughout an imaging, print, or manufacturing workflow.
The System.Drawing.SystemColors
class has properties exposing the various system colours, so you can do
this.BackColor = SystemColors.Control;
The full range of properties to access other colours is listed on MSDN.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With