tooltip on treenode

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

Is there anyway to get a tooltip to show for a specific treenode in a
treeview? thanks
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top