WEB开发网
开发学院WEB开发ASP.NET C# 选择器 checkedListBox 移动勾选 阅读

C# 选择器 checkedListBox 移动勾选

 2013-01-02 19:31:31 来源:WEB开发网   
核心提示: private void buttonSendChoickedToNosend_Click(object sender, EventArgs e){int end = this.checkedListBoxSend.Items.Count;for (int i = 0; i < end ; i++){if (c

 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]);//删除
}
}

Tags:选择 checkedListBox 移动

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接