If I have Checked list box in Win forms which I fill like this
List<Tasks> tasks = db.GetAllTasks();
foreach (var t in tasks)
tasksCheckedListBox.Items.Add(t.Name);
How can I iterate tasksCheckedListBox.Items and set some check boxes as checked?
Thanks
If you want to do it after the items have been added, there is an example on MSDN
Copied here: