Results 1 to 2 of 2

Thread: List Box Problem

  1. #1

    Thread Starter
    Lively Member trip85's Avatar
    Join Date
    Jun 2000
    Location
    Chalfont, PA
    Posts
    106

    Question

    I have a list box that I want to be able to delete items from. What i am trying to figure out is how to set it up so that the user can delete from anywhere in the list, instead of just the last rcord. PLEASE HELP

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    //

    example...

    Private Sub Form_Load()
    For i = 1 To 4
    List1.AddItem i
    Next

    End Sub

    Private Sub List1_DblClick()

    List1.RemoveItem List1.ListIndex
    List1.Refresh

    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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