Hello,
I do have a listview control in my form with a checkbox, and I would like to display just the selected items, by clicking a command button.
How can I do this?
Thank you,
Printable View
Hello,
I do have a listview control in my form with a checkbox, and I would like to display just the selected items, by clicking a command button.
How can I do this?
Thank you,
what do you mean just display the selected items? like remove all the items that aren't selected?
Here is some code to play with, you should be able to get what you want by modifying it.
VB Code:
Function CountSelectItem(lv As ListView) As Integer Dim Count As Integer Dim i As Integer Count = 0 For i = 1 To lv.ListItems.Count If lv.ListItems(i).Selected Then Count = Count + 1 End If Next i CountSelectItem = Count End Function