CheckedListBox Control - Only checking the checkbox when the actual checkbox is clicked

前端 未结 6 737
故里飘歌
故里飘歌 2021-01-02 01:14

I\'m using a CheckedListBox control in a small application I\'m working on. It\'s a nice control, but one thing bothers me; I can\'t set a property so that it only checks th

6条回答
  •  温柔的废话
    2021-01-02 01:38

    Another solution is to simply use a Treeview.
    Set CheckBoxes to true, ShowLines to false, and ShowPlusMinus to false and you have basically the same thing as a CheckedListBox. The items are only checked when the actual CheckBox is clicked.

    The CheckedListBox is much more simplistic, but the TreeView offers a lot of options that can potentially be better suited for your program.

提交回复
热议问题