Count checked CheckedListBox items

Posted by comii on Stack Overflow See other posts from Stack Overflow or by comii
Published on 2010-04-12T11:59:30Z Indexed on 2010/04/12 12:03 UTC
Read the original article Hit count: 368

Filed under:
|

Hi!

I have CheckedListBox and four item in it! Now I want to count number of checked item. For this I use:

 countnumber=CheckedListBox1.CheckedItems.Count

But countnumber is always 0 even if I checked CheckedListBox items or not!

What I am doing wrong?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about vb.net