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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

GridView Checkboxes 1
backcolor 2
backcolor 5
Changing Form BackColor in VB 1
Checkbox question 6
how to change tab page color 1
Frustrating Backcolor issue 8
Command Button Blink Color 0

Back
Top