C# 选择器 checkedListBox 移动勾选
2014-08-29来源:易贤网

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技术专栏

推荐信息