Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listview headaches

Status
Not open for further replies.

Craftor

Programmer
Feb 1, 2001
420
NZ
Hi all

I am using a listview control - with Checkboxes = True ie. checkboxes appear next to every item. Does anyone know of a quick way to see how many of these items are checked without doing a loop to check every item??


Thanks for any help

Craftor
 
I would imagine that even if a special command did exist it would just be looping through because VB would have to check the state of each box and what other way than by using a loop whether you have personally coded it or not?

elziko
 
Just make a label and the caption will depend on the items checked if a listbox item is checked the the label caption will be +1 if an item is unchecked the the label caption will be -1 your answer will be based on the label caption..which can be hidden and called up later..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top