Checked List Box Data

Using C#
I have a Checked list box in my program that i have placed data into.  I need to read the checked items that the user has selected and output them.  How do i search a checked list box for checked vs non checked items.
Who is Participating?
Craig WagnerConnect With a Mentor Software ArchitectCommented:
Something like this (where lstMembers is a CheckedListBox):
for( int i = 0; i <= lstMembers.Items.Count - 1; i++ )
    if( lstMembers.GetItemChecked( i ) )
        // lstMembers.Items[i] is checked, so process it

Open in new window

cotj73Author Commented:
Thank you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.