在.net winfrom 中
在CheckedListBox中 移除选中checkbox的项的代码:
int i = 0;
while (i < this.CheckedListBox1.Items.Count)
{
if (this.CheckedListBox1.GetItemChecked(i))
{
this.CheckedListBox1.Items.RemoveAt(i);
i = 0;
}
else
{ i++; }
}
很简单哦,