Results 1 to 3 of 3

Thread: Using multi-select list boxes

  1. #1
    Guest

    Post

    I want to know how to multi select items in a list box and then use the highlighted items for another task. my problem is i dont know how to access the selected items. Anyone know? thanks.

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,175

    Post

    After setting the MultiSelect property of the ListBox to True, this will do the rest.
    Code:
        Dim intIndex As Integer
        
        For intIndex = 0 To List1.ListCount - 1
            If List1.Selected(intIndex) Then
                MsgBox "My index is " & intIndex & ", my text is " _
                       & List1.List(intIndex) & " and I'm selected"
            End If
        Next intIndex
    ------------------
    Marty
    Can you buy an entire chess set in a pawn shop?

  3. #3
    Guest

    Post

    thanks

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