How to disable a checkbox in a checkedlistbox?

后端 未结 11 755
遥遥无期
遥遥无期 2020-12-03 10:46

I have some items in a CheckedListBox, I want to disable the CheckBox of first item in it.
i.e. I want to disable the first item in the C

11条回答
  •  长情又很酷
    2020-12-03 11:24

    This works for me:

    checkedListBox1.SelectionMode = SelectionMode.None;
    

    Which means no items can be selected

    None: No items can be selected.

    For more info, you can check it here: SelectionMode Enumeration.

提交回复
热议问题