Results 1 to 5 of 5

Thread: [RESOLVED] Remove listview rows

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    Resolved [RESOLVED] Remove listview rows

    I've been trying to remove rows from a listview I've produced. However the results are odd... The first remove works but when trying again it removes the wrong row. I've printed and used a messagebox to make sure that the value of the row highlighted is correct and it is...

    Anyway heres what I've done:

    Code:
    Private Sub mnuRemove_Click()
    Dim ToRemove As Integer
    ToRemove = lvMain.SelectedItem
    lvMain.ListItems.Remove (ToRemove)
    End Sub
    Probably something easy but any help appreciated. Thanks

  2. #2

  3. #3

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    107

    Re: Remove listview rows

    Brilliant, thanks

  5. #5

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