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);
                    }
                }
            }
        }

posted @ 2007-09-17 17:47  jenner  阅读(1034)  评论(0编辑  收藏  举报