Hi,
Try something like this in the treeview click event
Dim n As TreeNode
Try
n = TreeView1.GetNodeAt(TreeView1.MousePosition)
ToolTip1.SetToolTip(trvNorthWind, nd.Text)
Catch
ToolTip1.SetToolTip(trvNorthWind, "")
End Try
Ken
-----------------
<Lucio H> wrote in message news:u2**************@TK2MSFTNGP09.phx.gbl...
http://www.windowsformsdatagridhelp....6-16f7e283cbe9
Ken
sorry, I need the tip only after I click on a node, how do I change this to
use the Click event?
Private Sub trvNorthWind_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles trvNorthWind.MouseMove
Dim nd As TreeNode
Try
Dim pt As New Point(e.X, e.Y)
nd = trvNorthWind.GetNodeAt(pt)
ToolTip1.SetToolTip(trvNorthWind, nd.Text)
Catch
ToolTip1.SetToolTip(trvNorthWind, "")
End Try
End Sub