|
-
Jun 18th, 2011, 04:01 AM
#1
Thread Starter
Junior Member
ListView Help
Hello
Im having problem with the code below...
Private Sub Command1_Click()
If Not (ListView.SelectedItem Is Nothing) Then
ListView.ListItems.Remove (ListView.SelectedItem.Index)
End If
End sub
This code executes even if no item selected in the listview. How do you make it that only selected item in the listview will be deleted.
Thanks!
Last edited by DanielT; Jun 18th, 2011 at 04:07 AM.
Tags for this Thread
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
|