[ACCEPTED]-TreeNode mouse hover tooltip not showing up-mousehover

Accepted answer
Score: 36

A much simpler way is to:

  1. Set the ToolTipText on the TreeNode when you create it.
  2. Set the TreeView control's ShowNodeToolTips property to True.

And you're done.

0

Score: 4

looks like the problem is in the

TreeNode selNode = (TreeNode)treeView1.GetNodeAt(Cursor.Position);

line, change 4 it to

TreeNode selNode = (TreeNode)treeView1.GetNodeAt(treeView1.PointToClient(Cursor.Position));

and it should work; I would also recomd 3 to look at the following article: How to add a ToolTip to a TreeNode in Visual C# for detalis 2 on how to add tooltips to the treeview

hope 1 this helps, regards

More Related questions