Xedom
No, that isn't a tooltip. That's a popup that shows all the text, which will only appear when the text of the treenode is not entirely visible.
What you can do is set the ToolTipText of each node to something much shorter, say the first 50 characters, and use the code I posted above to toggle which 'type' of tooltip you'd like to show (long or short).
Use this routine to set the tooltip to something shorter....
Public Sub SetNodeToolTips(ByRef nd As TreeNode)
nd.ToolTipText = nd.Text.Substring(0, Math.Min(nd.Text.Length, 50)) & "..."
For Each n As TreeNode In nd.Nodes
n.ToolTipText = n.Text.Substring(0, Math.Min(n.Text.Length, 50)) & "..."
Next
End Sub
...and use it like this in the Form.Load() event....
For Each n As TreeNode In TreeView1.Nodes
SetNodeToolTips(n)
Next
Wayne