Hello,
Create a MouseMove event on the listview in question,
Inside this event place the following code:
Dim SelectedItem As ListViewItem = lvwFiles.GetItemAt(e.X, e.Y)
If Not SelectedItem Is Nothing Then
MyLabel.Text = SelectedItem.Text
End If
This snippet of code will retrieve the list view item at the position of the
mouse and if a valid item was found set a label's text to the text of the
item. Change MyLabel to the name of your label etc.
Hope this helps
Cheers
Simon
--
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
-
"amber" <an*******@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.com...
Hello,
I have a listview that displays a list of choices.
When the mouse moves over each item, I would like text (the name of the
item that is being hovered over) to show up
in a seperate label or textbox.
How do I set this?
Thanks,
Amber