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

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
 
P

Pipo

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
 
J

Just Me

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top