开发者

How to reference dynamically created checkedlistbox items in C#

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜