// 全选;
private void btn_allSelected_Click(object sender, EventArgs e)
{
//this.CheckedListBox1.CheckOnClick = true;
for (int i = ; i < this.checkedListBox1.Items.Count; i++)
{
this.checkedListBox1.SetItemChecked(i, true);
}
}
// 全消;
private void btn_allCancle_Click(object sender, EventArgs e)
{
for (int i = ; i < this.checkedListBox1.Items.Count; i++)
{
this.checkedListBox1.SetItemChecked(i, false);
}
}
// 反选
private void btn_Unselected_Click(object sender, EventArgs e)
{
for (int i = ; i < this.checkedListBox1.Items.Count; i++)
{
if (checkedListBox1.GetItemChecked(i))
{
this.checkedListBox1.SetItemChecked(i, false);
}
else
{
this.checkedListBox1.SetItemChecked(i, true);
}
}
}