B Brian Henry Jun 14, 2005 #1 Is there anyway to get a tooltip to show for a specific treenode in a treeview? thanks
K Ken Tucker [MVP] Jun 15, 2005 #2 Hi, Try something like this. 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 Ken
Hi, Try something like this. 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 Ken