Change backcolor of the checkbox component

  • Thread starter Thread starter windy
  • Start date Start date
W

windy

I would like to change the backcolor inside the checkbox when the component
is on focus, not the color of the text.

Thanks a lot.
 
In the Enter event of the check box have:

checkBox1.BackColor = Color.Red; // Any color you want on focus

And in the Leave event of the check box:

checkBox1.BackColor = SystemColors.Control;

Hope this helps?
 
Back
Top