Link to home
Start Free TrialLog in
Avatar of LeighWardle
LeighWardleFlag 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
Avatar of vb_elmar
vb_elmar
Flag of Germany image

Here is a sample.
3.zip
Avatar of 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
Avatar of vb_elmar
vb_elmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks,  vb_elmar,

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

Regards,
Leigh