Disable check/uncheck CheckBox after clicking checkbox`s label

2.1k views Asked by At

How can I disable standard behaviour when choosing checkbox`s label. Now when I click on label checkbox change its state.

Thanks

2

There are 2 answers

3
Hath On BEST ANSWER

you could have a check box with no text and then a label next to it.


You could wrap this up in a user control / control to make things a little neater.

0
TheVillageIdiot On

This is inherent behavior. You can pass empty string as label text and put a label beside checkbox. Or you can create composite control with Checkbox with empty text and a label with the text intended for checkbox's label.