checkedListBox
2015-07-25 22:18
309 查看
checkedListBox一键删除多个选中items
checkedListBox反选
private void button3_Click(object sender, EventArgs e) { for (int i = 0; i < checkedListBox1.Items.Count; i++) { if (checkedListBox1.GetItemChecked(i)) { checkedListBox1.Items.RemoveAt(i); i--; } }
checkedListBox反选
private void button11_Click(object sender, EventArgs e) { for (int i = 0; i < checkedListBox1.Items.Count; i++) { if (checkedListBox1.GetItemChecked(i)) { checkedListBox1.SetItemChecked(i, false); } else { checkedListBox1.SetItemChecked(i, true); } } }
相关文章推荐
- Java笔记
- Scala高阶编程指南
- Android —— 自定义View的实现方法
- 正则表达式的应用(持续更新ing)
- Tomcat整体架构分析
- Unique Paths
- Climbing Stairs
- Tomcat源码阅读计划
- word break
- ThreadPoolExecutor 原理
- 用AtomicStampedReference解决ABA问题(转)
- Concurrent的实现
- FutureTask
- AQS
- “保姆式”软件开发
- 7
- CountDownLatch and CyclicBarrier
- PriorityQueue 优先级队列
- 循环数组 and ArrayDeque
- ReentrantReadWriteLock