DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Tree View - Hit Test Question

Hybrid View

  1. #1
    DevX Guest

    Tree View - Hit Test Question

    I am making progress learning to use the new Tree View control. Thanks for
    the tips so far.

    I am currently stuck on how to find out which node something was dropped on
    to. I use to use HitTest to find the node. I do not see any similar method!
    Suggestions?

    What I am doing is allow a user to draw an item over a node and drop it on
    that node (NodeA). I will then make a new node as a child of NodeB.

    How should I best implement this?

    John G.



  2. #2
    Mattias Sjögren Guest

    Re: Tree View - Hit Test Question

    John,

    >I am currently stuck on how to find out which node something was dropped on
    >to. I use to use HitTest to find the node. I do not see any similar method!
    >Suggestions?


    TreeView.GetNodeAt() should be what you're looking for.

    This article might be of interest

    HOW TO: Add TreeView Drag-and-Drop Functionality in a Visual Basic
    ..NET Application (Q307967)
    http://support.microsoft.com/default...;EN-US;q307967


    Mattias

    ===
    Mattias Sjögren (VB MVP)
    mattias @ mvps.org
    http://www.msjogren.net/dotnet/

  3. #3
    John G. Guest

    Re: Tree View - Hit Test Question

    Thanks for the suggestion and the pointer to the article. I think that will
    go a long way to helping me learn how to do this now!

    John G.


    "Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
    news:3c865476@10.1.10.29...
    > John,
    >
    > >I am currently stuck on how to find out which node something was dropped

    on
    > >to. I use to use HitTest to find the node. I do not see any similar

    method!
    > >Suggestions?

    >
    > TreeView.GetNodeAt() should be what you're looking for.
    >
    > This article might be of interest
    >
    > HOW TO: Add TreeView Drag-and-Drop Functionality in a Visual Basic
    > .NET Application (Q307967)
    > http://support.microsoft.com/default...;EN-US;q307967
    >
    >
    > Mattias
    >
    > ===
    > Mattias Sjögren (VB MVP)
    > mattias @ mvps.org
    > http://www.msjogren.net/dotnet/




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center