zoukankan      html  css  js  c++  java
  • winform CheckedListBox实现全选/全不选

    /全选
            private void button3_Click(object sender, EventArgs e)
            {
                for (int i = 0; i < this.checkedListBox1.Items.Count; i++)
                {
                    this.checkedListBox1.SetItemChecked(i, true);
                }
     
    }
            //反选
            private void button4_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内存模型
    如何保证消费者接收消息的顺序
    mysql事务隔离级别
    mysql加锁读
    mysql一致性读
    InnoDB锁
    JDK1.8中的线程池
    JDK1.8中HashMap实现
    物品推荐(基于物品的协同过滤算法)
    CRM 2013 生成自动编号
  • 原文地址:https://www.cnblogs.com/zhangruisoldier/p/4227020.html
Copyright © 2011-2022 走看看