femonk
femonk

Reputation: 65

C# checkboxlist: How to avoid changing the checkbox state by clicking on the label?

how do I avoid that an item in a C#-checkboxlist can be selected by clicking on the label? So, the state of the checkbox should only be changed by clicking onto the box, but not by clicking on the label.

Can anyone please give me a hint? Thanks a lot in advance.

Upvotes: 0

Views: 178

Answers (1)

Elias
Elias

Reputation: 155

You can create a checkbox without text and add a seperate label next to the checkbox

Upvotes: 1

Related Questions