Help... How do i delete a selected item from ListView?
Below is the method i've tried using, but it doesn't work.
For the method mentioned above, if there's only an item inside the ListView, it works well if i tried deleting that item. However, if there's 2 items in the ListView, it'll still delete the item i've selected but giving me the error 'Index out of bound' at the same time.VB Code:
Dim i As Integer For i = 1 To lsvNewContacts.ListItems.Count lsvNewContacts.ListItems.Remove (i) Next i
Is there anyone out there that can help me with this problem? Thank you and oh by the way I am currently using visual basic 6.
