/*int count=checkedListBox1.CheckedItems.Count;
for (int i=0;i<count;i++)
{
heckedListBox1.Items.Remove(checkedListBox1.CheckedItems[0]);
}*/
int count = checkedListBox1.CheckedIndices.Count;
for (int i = 0; i < count; i++)
{
checkedListBox1.Items.RemoveAt(checkedListBox1.CheckedIndices[0]);
}