Avatar of LeighWardle
LeighWardle
Flag for Australia asked on

Help with VB6 code - TreeView object with 2 root nodes?

Hi Experts,

I just got some sample code from vb_elmar that provided an example of one TreeView object with 2 root nodes.

When I changed the code to give me the hierarchy that I want, I do not get what I am after.

I want it to look like:
        Job
       ...Layered System
       
       Data
       ...Load Groups

My project is attached.

Regards,
Leigh
TreeView-object-with-2-root-node.zip
Visual Basic Classic

Avatar of undefined
Last Comment
LeighWardle

8/22/2022 - Mon
vb_elmar

Here is a sample.
3.zip
LeighWardle

ASKER
Hi vb_elmar,

Thanks, your sample gives the desired hierarchy.

Can you please do me a favour and explain the significance of the first parameter (1, 2 or 4 in the your sample) used in the .Nodes.Add statement?

Thanks,

Regards,
Leigh
ASKER CERTIFIED SOLUTION
vb_elmar

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
LeighWardle

ASKER
Thanks,  vb_elmar,

Your explanation is very clear - it's great to have a diagram,

Regards,
Leigh
Your help has saved me hundreds of hours of internet surfing.
fblack61