checkbox control look like button

  • Thread starter Thread starter cj
  • Start date Start date
C

cj

How can I make a checkbox control look like a button with a check in it?
I need to figure out the border color etc to make it look like a button.
 
How can I make a checkbox control look like a button with a check in it?
I need to figure out the border color etc to make it look like a button.

Use two controls on top of each other, a checkbox and a button. Make
the button not visible by default. In the checkbox's checkchanged
event handler, if the checkbox is checked, make it invisible, and make
the button visible.

Only problem is there would be no way to un-check it, unless you
handled that somehow in the button's click event.
 
Use two controls on top of each other, a checkbox and a button. Make
the button not visible by default. In the checkbox's checkchanged
event handler, if the checkbox is checked, make it invisible, and make
the button visible.

Only problem is there would be no way to un-check it, unless you
handled that somehow in the button's click event.

Boy, I totally misread your question. Not sure if you can do that. You
could use a Button control and have two images, one that looks like a
checked checkbox, and one that looks like a un-checked checkbox. And
in the button's click event, change the control's image appropriately.
 
Back
Top