摘要: 一般认为:foreach (object obj in checkedListBox1.SelectedItems)即可遍历选中的值。 其实这里遍历的只是高亮的值并不是打勾的值。遍历打勾的值要用下面的代码:for (int i = 0; i < checkedListBox1.Items.Count; i++){ if (checkedListBox1.GetItemChecked(i)) { MessageBox.Show(checkedListBox1.GetItemText(checkedListBox1.Items[i])); }}最近用到checklistbox... 阅读全文
posted @ 2012-09-16 21:42 竹林逸轩 阅读(313) 评论(0) 推荐(0) 编辑