-
I have placed a treeview control on a form in a vb project. besides that ia have placed a textbox control with its multiline property set to true.
I want to hover the mouse over a particular node in a treeview control and display the corresponding information in a textbox. the treeview control contains many roots and sub nodes. the nodes may be expanded or not.
-
You don't need the API for this.....
Use the HitTest method on the TreeView control in the MouseMove event:
Code:
MyNode = TreeView1.HitTest(X,Y)
This will return a Node object reference which you can use to populate your TextBox.
Hope this helps ;)