Results 1 to 2 of 2

Thread: counting a list box

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    20

    Post

    ok. some one will click in item in the list box . then text3 to say that number 86 item of the list box. it will till you what number it is.

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    I'm not sure what you are asking about but you could use ListBox.Index Property.

    Example:
    Code:
    Private Sub List1_Click()
        Text3.Text = List1.ListIndex
    End Sub
    ------------------
    Visual Basic Programmer (at least I want to be one)
    ------------------
    PolComSoft
    You will hear a lot about it.


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