日期:2014-05-18 浏览次数:20866 次
private void button1_Click(object sender, EventArgs e) { checkedListBox1.SetItemCheckState(0, CheckState.Indeterminate); } private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e) { if (((CheckedListBox)sender).GetItemCheckState(e.Index) == CheckState.Indeterminate) e.NewValue = CheckState.Indeterminate; }