I am working on a winform in which I have taken a checklist box. I want to store the checked items of checklist box in array list.There are 5 items in my checklist box and I want to handle itemcheck
event.
if I check one item itemcheck
event fires but items count remains 0 again if I check 2 items in event handler items count becomes 1 if I repeat this process next time count becomes 2(but now I have checked 3 items).
Please help me on this code below is the code snippet that I am using :
private void CLB_Course_ItemCheck(object sender, ItemCheckEventArgs e)
{
List<string> items = new List<string>();
foreach (string ItemsChecked in CLB_Course.CheckedItems)
{
items.Add(ItemsChecked);
}
}