How can you tell what item is double clicked on in a list box?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How can you tell what item is double clicked on in a list box?

  1. #1
    Ted Young Guest

    How can you tell what item is double clicked on in a list box?


    How can you tell what item is double clicked on in a list box?



  2. #2
    Do Bee Guest

    Re: How can you tell what item is double clicked on in a list box?

    There is an event for the List box called DblClick that can handle it. For
    example:

    'this will determine the item in the list on which the double click was
    performed and return the array number to a variable. You can use the
    variable to perform an action based on the number
    Private Sub List1_DblClick()
    Dim lstItem As Integer
    lstItem = List1.ListIndex
    End Sub

    "Ted Young" <tedyoung@connecticare.com> wrote in message
    news:3b153e67$1@news.devx.com...
    >
    > How can you tell what item is double clicked on in a list box?
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center