is there a way to determine which TreeView node we are hovering over?

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

With a TreeView control and a MouseHover event
is there a way to determine which node we are hovering over?


Thanks in advance
 
Just Me,

Dim nod As TreeNode =
TreeView1.GetNodeAt(TreeView1.PointToClient(Cursor.Position))

If Not (nod Is Nothing) Then

Label1.Text = nod.Text

Else

Label1.Text = ""

End If
 
Thanks, just what I need

Pipo said:
Just Me,

Dim nod As TreeNode =
TreeView1.GetNodeAt(TreeView1.PointToClient(Cursor.Position))

If Not (nod Is Nothing) Then

Label1.Text = nod.Text

Else

Label1.Text = ""

End If
 
Back
Top