1

I have the following code:

if (e.Node.Level == 2 && e.Node.Name.Contains("PI3K1003")) toolTip1.Show("test",_tv);

It works when I do hover the mouse over the appropriate node. However, when I leave the treeview control and then move the mouse back onto the control, the tooltip displays straight away, even though I am not hovering over this node?

Any ideas why?

Thanks.

1 Answer 1

2

It is because you told the ToolTip control to show the tip for the entire TreeView, not just the node. Consider the TreeNode.ToolTipText property instead.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.