Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27512

Looping through collection/group of controls

$
0
0
I searched but didn't see what I was looking for. I'm sure this has been asked/answered before but I couldn't find it.

I have a number of checkboxes and would like to loop through all of them to see what ones have been have been checked.

I think i have the idea correct but I'm not able to get it to work correctly. I've tried a bunch of different versions/ways..


for each checkbox in checkbox.collection
if checkbox(i).checked then
intCounter + = 1
end if
next

?

Viewing all articles
Browse latest Browse all 27512

Trending Articles