PDA

Click to See Complete Forum and Search --> : Select a listview item on mouseover??


omarswan
Jan 7th, 2000, 11:56 AM
How Do I automatically Select a listview item on mouseover??

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

omarswan@yahoo.com

http://omarswan.da.ru/

"Jesus is Lord"

QWERTY
Jan 7th, 2000, 01:06 PM
I'm not sure if it is gonna work (I didn't test it), but you can give it a try:

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).]