checkedListBox 单选设置(代码实现)

 private void chkl_ItemAuditing_ItemCheck(object sender, ItemCheckEventArgs e)
        {

            if (chkl_ItemAuditing.CheckedItems.Count > 0)
            {
                for (int i = 0; i < chkl_ItemAuditing.Items.Count; i++)
                {
                    if (i != e.Index)
                    {
                        this.chkl_ItemAuditing.SetItemCheckState(i, System.Windows.Forms.CheckState.Unchecked);
                    }
                }
            }
        }

你可能感兴趣的:(checked)