2012年8月11日
摘要: (转载自http://blog.sina.com.cn/s/blog_4cf58c9c010106mx.html)C# checklistbox控件用法总结(怎样得到多选的值,以及动态加载数据)一般认为:foreach (object obj in checkedListBox1.SelectedItems)即可遍历选中的值。其实这里遍历的只是高亮的值并不是打勾的值。遍历打勾的值要用下面的代码:for(inti=0;i<checkedListBox1.Items.Count;i++){if(checkedListBox1.GetItemChecked(i)){MessageBox.Sho 阅读全文
posted @ 2012-08-11 20:02 爱搁浅 阅读(13408) 评论(0) 推荐(1) 编辑