troubleshooting Question

How to create tree view with sub view

Avatar of Altaf Khan
Altaf Khan asked on
Visual Basic Classic
8 Comments1 Solution79 ViewsLast Modified:
Hi
I am trying to create tree view and so far my progress is as follow..
but not as i expected ..
my code is as follow
    With RsHLList
        Do While Not .EOF
            TreeView1.Style = tvwTreelinesPlusMinusText
            
            With TreeView1.Nodes.Add(, , , RsHLList(0), 1)
                TreeView1.Nodes.Add .Index, tvwChild, , RsHLList(1), 2
                With TreeView1.Nodes.Add(.Index, tvwChild, , RsHLList(2), 2)
                    .Expanded = True
                End With
                .Expanded = True
            End With
            .MoveNext
        Loop
        .Close
    End With

i want to tree view like
ALTAF
    50
              10
              12
              18
ALTAF
     100
            14
            22
            26
            35
JHON
     250
            25
            30
EE_treeview.jpg
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros