tags:

views:

16

answers:

1

Hi,

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.

+2  A: 

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.

Hans Passant
Excellent. Exactly what I was looking for. Thanks.
Darren Young