I need a way to find out how many items are checked within a checked list box, is there any way to do this?
Printable View
I need a way to find out how many items are checked within a checked list box, is there any way to do this?
You can use CheckedListBox1.CheckedIndices.Count
You can also use
Code:CheckedListBox1.CheckedItems.Count
Yes, .net always gives us so many way to skin a cat.
If you are going to be using the checked items then using the CheckedItems collection would be better but if you only want a fast count then CheckedIndices :D
Thanks Guys