checkedListBox 取值
//循环遍历checkedlistbox
for (int i = 0; i < checkedListBox1.Items.Count; i++)
{
//如果被选中则执行下列代码
if (this.checkedListBox1.GetItemChecked(i))
{
MessageBox.Show(this.checkedListBox1.Items[i].ToString());
}
}
//循环遍历checkedlistbox
for (int i = 0; i < checkedListBox1.Items.Count; i++)
{
//如果被选中则执行下列代码
if (this.checkedListBox1.GetItemChecked(i))
{
MessageBox.Show(this.checkedListBox1.Items[i].ToString());
}
}