Is there a command which will clear all the check boxes in a CheckedListBox control ?
Or do I need to loop through each item and uncheck as required ?
Thanks in advance for any help
Printable View
Is there a command which will clear all the check boxes in a CheckedListBox control ?
Or do I need to loop through each item and uncheck as required ?
Thanks in advance for any help
I'm sure you read the help topic for the CheckedListBox member listing, so to confirm your suspicions I'd say that the best method would be:VB Code:
For i As Integer = 0 To myCLB.Items.Count - 1 Step 1 myCLB.SetItemChecked(i, False) Next i
Thanks for your help JM :thumb:
Your correct, I did read through the member listing but could only find ClearSelected() which didn't do the trick, so given my limited knowledge I though I may be missing a trick :)