[ACCEPTED]-TreeNode mouse hover tooltip not showing up-mousehover
Accepted answer
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.
0
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
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.