Results 1 to 3 of 3

Thread: Tree view selected Node before drag

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Sydney Australia
    Posts
    476

    Tree view selected Node before drag

    Hi Team

    When I want to drag from a tree view how do I find out which node I started dragging? The SelectedItem does not work as the previously clicked node is the SelectedItem.

    Any Ideas, this must be easy!

    Thanks
    FW

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Sydney Australia
    Posts
    476
    Thank ML the problem with this is is causes and error if the user clicks on the + or - in the tree. I can get around this with
    VB Code:
    1. If Not tvwCostCentres.HitTest(x, y) Is Nothing Then
    2.         strSelectedNodeKey = tvwCostCentres.HitTest(x, y).Key
    3.     End If
    But I hoped ther would be a tidyer solution.

    FW

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