How to change disable color for Checkbox???

  • Thread starter Thread starter Matrixreloadedth
  • Start date Start date
M

Matrixreloadedth

How to change disable color of Checkbox??? I have a checkbox with
forecolor in red but when i disable by set Enable properties to false
forecolor is changed to gray color but i don't want it. how to make
disable color as the same before set enable = false


Anyone can help me?????
 
To get around that issue, I just create an event handler that, whenever the
checkbox is clicked, sets its value back to what I wanted it to be. If it is
supposed to be checked, then every click event checks the box, etc.

If the checkbox in question is always disabled but you just don't want it
gray, they you can even inherit a new control from TextBox and build that
behavior into the checkbox.

Dale
 
Dale,Thank you for your reply.

But i have some questions? Checkbox are inherited from ButtonBase and
why u suggest me to create new control from TextBox ? Not a ButtonBase?
and another question,Are you can give me some code snippets about
inherit new control from TextBox?

and i will give you more information for my purpose:
I want to use all behavior of checkbox but only thing, the
forecolor of checkbox ( Text color) when it's disable,i don't want make
it's checkbox text color different from enable and only checkbox
region that can be gray color when it's disable, not a Text.

Please Help me???


Thanks.



Dale เขียน:
 

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

Back
Top