Live Chat Icon For mobile
Live Chat Icon

WinForms FAQ - CheckedListBox

Find answers for the most frequently asked questions
Expand All Collapse All

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

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

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


Permalink

Share with

Share on twitter
Share on facebook
Share on linkedin

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

Please submit your question and answer.