To get the number of items in the checkedlistbox, you don’t need to loop. You already have some ready statement for that. Look at the example below. We have created a checkedlistbox and it counts number of records on change.
Count number of items Checked in an CheckedListBox:
txtselectitem.Text = chklstexparea.CheckedIndices.Count & " records Selected.. "
chklstexparea.CheckedIndices.Count to count how many checkbox got selected in the checkedlistbox🔥109 Views