Results 1 to 5 of 5

Thread: ListView Help

Threaded View

  1. #1

    Thread Starter
    Junior Member DanielT's Avatar
    Join Date
    Apr 2011
    Location
    Philippines
    Posts
    16

    Thumbs up 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
  •  



Click Here to Expand Forum to Full Width