Solved

Checked List Box Data

Posted on 2009-06-30
2
337 Views
Last Modified: 2012-05-07
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.
0
Comment
Question by:cotj73
2 Comments
 
LVL 21

Accepted Solution

by:
Craig Wagner earned 500 total points
Comment Utility
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

0
 
LVL 1

Author Closing Comment

by:cotj73
Comment Utility
Thank you
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now