Results 1 to 2 of 2

Thread: Select a listview item on mouseover??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Post

    How Do I automatically Select a listview item on mouseover??

    ------------------
    OmarSwan

    [email protected]

    http://omarswan.da.ru/


    "Jesus is Lord"

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

    Post

    I'm not sure if it is gonna work (I didn't test it), but you can give it a try:
    Code:
    Private Sub ListView1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
        Dim AnyItem As ListItem
    
        Set AnyItem = ListView1.HitTest(x, y)
    
        If Not AnyItem Is Nothing Then
            Set ListView1.DropHighlight = AnyItem
            ListView1.DropHighlight.Selected = True
        End If
    End Sub
    ------------------
    Visual Basic Programmer
    ------------------
    PolComSoft
    You will hear a lot about it.



    [This message has been edited by QWERTY (edited 01-08-2000).]

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