snufse Posted July 27, 2006 Posted July 27, 2006 I have a CheckedListBox where I select/click an item (line) and perform some function. When done I want to reset the CheckedListBox. I use the CheckedListBox.ClearSelected() but my checkmark does not get removed? Any ideas. Quote
Administrators PlausiblyDamp Posted July 28, 2006 Administrators Posted July 28, 2006 You might need to loop through the items and manually clear the check status. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
bshaen Posted July 28, 2006 Posted July 28, 2006 u may try to check one item by item item checked. Dim a, i As Integer a = check.Items.Count i = 0 Do While i < a If check.GetItemChecked(i) Then check.SetItemChecked(i, False) End If i += 1 Loop hope its help u! Quote
snufse Posted July 28, 2006 Author Posted July 28, 2006 Fantastic, it worked !! Thank you ...... u may try to check one item by item item checked. Dim a, i As Integer a = check.Items.Count i = 0 Do While i < a If check.GetItemChecked(i) Then check.SetItemChecked(i, False) End If i += 1 Loop hope its help u! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.