Archive for the 'Winforms' Category

24 Dec

Solution: Changing color of disabled checkbox or radioButton

Applies to: C#.NET/VB.NET (Windows Programming).
1. Making it gray
After being disabled, the checkbox and radiobutton control’s ForeColor turns contrast to the BackColor of the form.This behavior is good because it increases the readability of your forms.
But in some cases this is really not desired.
So in that case you can make the CheckBox/RadioButton gray by setting its

BackColor [...]