[ACCEPTED]-TreeNode mouse hover tooltip not showing up-mousehover
A much simpler way is to:
- Set the ToolTipText on the TreeNode when you create it.
- Set the TreeView control's ShowNodeToolTips property to True.
And you're done.
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