Results 1 to 2 of 2

Thread: Mouse Hovering in a TreeView Control in VB (Very Urgent !!!)

  1. #1
    Guest

    Lightbulb

    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.

  2. #2
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810
    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
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width