Count number of items Checked in an CheckedListBox

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


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.