List<ListItem> selected = new List<ListItem>(); foreach (ListItem item in CBLGold.Items) if (item.Selected) selected.Add(item);
List<CheckBox> cbList = new List<CheckBox>(); foreach(CheckBox cb in cbList) { //do what you want here. cb.Checked = true; }
foreach (object o in myCheckedListBox.Items) { Console.WriteLine(o.ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)