Introduction - If you have any usage issues, please Google them yourself
Introduction
When applying a dark skin theme to my Windows Forms application which used a GroupBox
But as soon as I wanted to set the GroupBox.Enabled property to false, things did not look that good anymore.
As can be seen in the screendump, the standard GroupBox on the right automatically chooses a black color for the disabled state:
Background
SkinSettings Class
The skin themes are in a separate class SkinSettings, to keep the example small, it only has a few settings.
It also has a ColorDisabled() method for calculating the custom disabled Color.
Hide Shrink Copy Code
using System
using System.Drawing
namespace CustomControls1
{
/// <summary>
/// A simple SkinSettings class.
/// This could be extended to support more control colors.
/// </summary>
public static class SkinSettings
{
public static Color FormBackColor { get set }
public static Color FormForeColor { get set }
public s