CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: trees in vb

  1. #1
    Join Date
    Apr 2001
    Posts
    11

    trees in vb

    Does anyone know how to create a tree in VB. I'm use to doing it in C where you have a node with a pointer to parent and child. Don't know how to accomplish this in vb


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: trees in vb

    You can use tree view control

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: trees in vb

    Create a new class with two members, Parent and Child of type Object and manipulate it as if these were pointers.

    HTH,
    D.

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

  4. #4
    Join Date
    Apr 2001
    Posts
    11

    Re: trees in vb

    I don't really need a control but a logical tree I can transverse using a recursive function.


  5. #5
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: trees in vb

    The Treeview control actually has what you want. Its methods include the ability to access a nodes parent as well as siblings and Children.

    John G

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

Featured