I don't think you can directly assign tooltip info to individual nodes. So
you will have to create a class that inherits TreeViewNode class. This child
class will have a variable for the ToolTip(string). You will need to create
these specialised nodes and add them to your treeview.
Hope this helps.
Here is some sample code
///
Public Class tvwTooltip
Inherits TreeNode
Public tvwToolTip As String
Sub New()
MyBase.New()
End Sub
End Class
'This goes in your form where you are adding the nodes to the treeview
Dim tvwNode As tvwTooltip
Thanks Herfried,
It worked.
I will allow me to make a .NET feature request. In general I am impressed
how powerfull .NET classes are (and how much more productive the .NET
programming is relative to native coding), but sometimes I am wondering that
such simple things are not there. I.e. why not just provide tooltip propery
for all Forms controls? Or why not make a "build-in" checkbox column type
for datagrids and listviews?
In this case no "workaround" would be needed.
Thanky you very much for all your answers to my posts, you help me very much
all the time.
With best regards,
Boni
I will allow me to make a .NET feature request. In general I am impressed
how powerfull .NET classes are (and how much more productive the .NET
programming is relative to native coding), but sometimes I am wondering
that such simple things are not there. I.e. why not just provide tooltip
propery for all Forms controls? Or why not make a "build-in" checkbox
column type for datagrids and listviews?
In this case no "workaround" would be needed.
In .NET 2.0 'TreeNode' will have a 'ToolTipText' property.
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.