Results 1 to 2 of 2

Thread: Darn Listboxes

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    To test my math skills in VB, I'm making a currency converter. I have 2 Listboxes, one with the starting country, the second with countries you would like to convert the currncy to. How can I see what is highlited in the listboxes?


    Steve

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You need to check the Selected Property of each Item, eg.
    Code:
        Dim iIndex As Integer
        For iIndex = 0 To List2.ListCount - 1
            If List2.Selected(iIndex) Then
                'This Item has been Selected
            End If
        Next
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

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