Listview Remove Method 
Author Message
 Listview Remove Method

Dim itmX As Listitem
Set itmX = lvListView.ListItems.Add(, , "tekst", 1, 2)

Private Sub lvListView_DblClick()
 lvListView.ListItems.Remove ???
End Sub

???



Mon, 09 Aug 2004 11:12:17 GMT  
 Listview Remove Method
Try...
'==========
Private Sub ListView1_DblClick()
   With ListView1
      If Not .SelectedItem Is Nothing Then
         .ListItems.Remove (.SelectedItem.Index)
      End If
   End With
End Sub
'==========

--
Ken Halter
MS-MVP-VB
Please keep it in the groups..


Quote:
> Dim itmX As Listitem
> Set itmX = lvListView.ListItems.Add(, , "tekst", 1, 2)

> Private Sub lvListView_DblClick()
>  lvListView.ListItems.Remove ???
> End Sub

> ???



Mon, 09 Aug 2004 13:36:50 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Remove Interface Methods from class methods

2. ACC97: Remove method for Reference Object

3. Can't get Remove method to work

4. Listbox.Remove method

5. Collection Class Remove method

6. .Remove method for ImageList produces error

7. Treeview: Nodes.Clear method slower than removing one-by-one

8. ListView Control - Removing selected items from the list

9. Removing an item from a listview

10. Removing duplicates from a ListView

11. Removing an item from a ListView

12. ListView remove

 

 
Powered by phpBB® Forum Software