winform 点击全选

2021-04-14 08:25

阅读:376

标签:check   src   bsp   mon   pre   png   div   for   nta   

技术分享图片

代码如下:

 #region 全选
        //chkAll_Checked即全选控键的点击事件
        private void chkAll_CheckedChanged(object sender, EventArgs e)
        {
            if (chkAll.Checked)
            {
                chkSun.Checked = true;
                chkMon.Checked = true;
                chkThu.Checked = true;
                chkTue.Checked = true;
                chkWed.Checked = true;
                chkFri.Checked = true;
                chkSat.Checked = true;
            }
            else
            {
                chkSun.Checked = false;
                chkMon.Checked = false;
                chkThu.Checked = false;
                chkTue.Checked = false;
                chkWed.Checked = false;
                chkFri.Checked = false;
                chkSat.Checked = false;
            }
        } 
        #endregion

 

winform 点击全选

标签:check   src   bsp   mon   pre   png   div   for   nta   

原文地址:https://www.cnblogs.com/cc1120/p/8968852.html


评论


亲,登录后才可以留言!