日期:2014-05-18 浏览次数:21006 次
int[] indexs = new int[checkedListBox1.CheckedIndices.Count]; checkedListBox1.CheckedIndices.CopyTo(indexs, 0); Array.ForEach(indexs, v1 => checkedListBox1.SetItemChecked(v1, false));
------解决方案--------------------
foreach (int item in checkedListBox1.CheckedIndices) { checkedListBox1.SetItemChecked(item, false); }