I'm trying to see if a particular item in a checkedlistbox is checked or not. I assumed referencing the item would be:
var checkBox = CheckBoxCheckedListBox1.Items[0];
But that retu开发者_如何学编程rns an object. Casting to a CheckBox throws an exeption.
Thanks!
Use bool checked = CheckBoxCheckedListBox1.GetItemChecked(i)
here.
精彩评论