Click here to Skip to main content
15,616,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all
how can i add items and there values to windows application form ( checkboxlist)
?
and when i check on some items name i need to get all values i choose >


please help me :)

What I have tried:

C#
hi all
how can i add items and there values to windows application form ( checkboxlist)
?
and when i check on some items name i need to get all values i choose >


please help me :)
Posted
Updated 7-Oct-16 17:03pm
Comments
[no name] 7-Oct-16 15:41pm    
Loop through the CheckedItems property. Reading the documentation helps a great deal...

Get checked list by
C#
foreach (Object item in checkedListTrainingRoom.CheckedItems)
{
    MessageBox.Show(item.ToString() + " is Checked");
}
 
Share this answer
 
refer this and try

https://www.dotnetperls.com/checkedlistbox[^]
https://www.youtube.com/watch?v=JEejAbEfHZc[^]
https://www.youtube.com/watch?v=kTrw04aEAXM[^]

C#
foreach (KeyValuePair<string,string> item in checkedListTrainingRoom.CheckedItems)
          {
              string value = item.Value;
          }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900