Possible Duplicate:
How to disable a checkbox in a checkedlistbox?
I'm looking at trying to disable a checkboxlist item if another item is checked. The handling of this is easy however I'm struggling on actually disabling a particular item. There seems to be no enabled function in Items property so I'm unsure how to disable specific items.
If CheckedListBox1.GetItemChecked("0") = True Or
CheckedListBox1.GetItemChecked("1") = True Then
CheckedListBox1.Items(0).enabled=false
ElseIf CheckedListBox1.GetItemChecked("0") = false AND
CheckedListBox1.GetItemChecked("1") = false Then
CheckedListBox1.Items(0).enabled=true
Any help greatly appreciated
Thanks