Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    243

    Unanswered: Treeview Control : Get underlying children

    Hi all,

    I have a treeview control on my form.

    This is what I want : click any node and get only the children which are below, no matter on what level I click

    I have no idea how I can get this.

    This is what I have so far :

    Private Sub GetChildren()
    Dim selectedNode As MSComctlLib.node
    Set selectedNode = TvwTree.SelectedItem

    ### And then I got stuck
    End Sub



    Anyone any suggestion?

    Thanks in advance

  2. #2
    Join Date
    May 2010
    Posts
    601
    Quote Originally Posted by artemide View Post
    Hi all,

    I have a treeview control on my form.

    This is what I want : click any node and get only the children which are below, no matter on what level I click

    I have no idea how I can get this.

    This is what I have so far :

    Private Sub GetChildren()
    Dim selectedNode As MSComctlLib.node
    Set selectedNode = TvwTree.SelectedItem

    ### And then I got stuck
    End Sub



    Anyone any suggestion?

    Thanks in advance
    Learning to use the treeview control can be a little daunting. It does require lots of VBA coding since everything must be done manually.

    I do think is is work the effort for some applications.

    I use the attached written by a fellow Access MVP, Brent Spaulding, to learn how to work with the treeview control.
    Attached Files Attached Files
    Boyd Trimmell aka HiTechCoach HiTechCoach.com (free access stuff)
    Microsoft MVP - Access Expert
    BPM/Accounting Systems/Inventory Control/CRM
    Programming: Nine different ways to do it right, a thousand ways to do it wrong.
    Binary--it's as easy as 1-10-11

Posting Permissions

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