How to disable a checkbox in a checkedlistbox?
问题 I have some items in a checked list box, I want to disable the checkbox of first item in it. i.e. I want to disable the first item in the CheckedListBox, because I want to tell the user visually that option is not available. 回答1: Combining 2 of the above partial answers worked great for me. Add your items to the list with: myCheckedListBox.Items.Add(myItem, myState); Where myState is CheckState.Indeterminate for items that should be disabled. Then add an event handler to keep those items from