Something like this?
Private Sub TreeView1_MouseMove(Button As Integer, _
Shift As Integer, x As Single, y As Single)
Dim nodHoover As Node
If Button = 0 Then
Set nodHoover = TreeView1.HitTest(x, y)
If Not nodHoover Is Nothing Then
Label1.Caption = nodHoover.Text
End If
End If
End Sub
Cheers
Andy
Karim Benabd wrote:
Hi,
I have a TreeView on a userform and I would like to show some
information on a label based on the current node (not selected) over
which the mouse is moving.
I made many searches in googles and could not find a code snippet on
this.
Thanks for your help.
Regards,
Karim
--
Andy Pope, Microsoft MVP - Excel
http://www.andypope.info