Live Chat Icon For mobile
Live Chat Icon

How do I check/uncheck all items in my checkedlist

Platform: WinForms| Category: CheckedListBox

To check all items, you can use code such as:

for( int i=0 ; i < myCheckedListBox.Items.Count; i++ ) 
   myCheckedListBox.SetItemChecked(myCheckedListBox.Items[i], true); 

For i As Integer = 0 To myCheckedListBox.Items.Count - 1 
    myCheckedListBox.SetItemChecked(myCheckedListBox.Items(i), True) 

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.