private void buttonSendChoickedToNosend_Click(object sender, EventArgs e)
{
int end = this.checkedListBoxSend.Items.Count;
for (int i = 0; i < end ; i++)
{
if (checkedListBoxSend.GetItemChecked(i))
{
this.checkedListBoxSiftEmail.Items.Add(checkedListBoxSend.GetItemText(checkedListBoxSend.Items[i]));
}
}
for (int j = 0; j < this.checkedListBoxSend.CheckedIndices.Count;)
{
this.checkedListBoxSend.Items.RemoveAt(this.checkedListBoxSend.CheckedIndices[0]);//删除
}
}
更多信息请查看IT技术专栏