PDA

Click to See Complete Forum and Search --> : Mouse Hovering in a TreeView Control in VB (Very Urgent !!!)


Dec 18th, 2000, 03:56 AM
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.

Jerry Grant
Dec 18th, 2000, 07:16 AM
You don't need the API for this.....

Use the HitTest method on the TreeView control in the MouseMove event:


MyNode = TreeView1.HitTest(X,Y)


This will return a Node object reference which you can use to populate your TextBox.

Hope this helps ;)