|
-
Aug 7th, 2001, 12:44 AM
#1
Thread Starter
Member
ListView Multiselection
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,
-
Aug 7th, 2001, 12:54 AM
#2
what do you mean just display the selected items? like remove all the items that aren't selected?
-
Aug 7th, 2001, 03:24 AM
#3
Fanatic Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|