foreach (var item in itemList) { checkedListBox1.Items.Add(item); }
ListThis code creates a List variable and then loops through the CheckedItems collection of the CheckedListBox to retrieve the selected items. The ToString() method is called on each item to convert it to a string and add it to the list. The CheckedListBox control is part of the .NET Framework's System.Windows.Forms library.selectedItems = new List (); foreach (var item in checkedListBox1.CheckedItems) { selectedItems.Add(item.ToString()); }