Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

TreeView Control

Dear VB Experts, i need your help with the following question:

Suppose you had a TreeView control called TV Write code to create the foflowing hierarchy.

a.The highest leves is operations.

b.Below Operations, there are West Coast and East Coast.

c.Below West Coast, there is a California office.

d.Below East Coast, there are New York and Boston offices.

Thanks,

Jairo Cardenas
0
jcardenas
Asked:
jcardenas
1 Solution
 
AzraSoundCommented:
Private Sub Form_Load()
    TVWriteCode.Nodes.Add , , "Parent", "Operations"
    TVWriteCode.Nodes.Add "Parent", tvwChild, "Op1", "West Coast"
    TVWriteCode.Nodes.Add "Parent", tvwChild, "Op2", "East Coast"
    TVWriteCode.Nodes.Add "Op1", tvwChild, , "California"
    TVWriteCode.Nodes.Add "Op2", tvwChild, , "New York"
    TVWriteCode.Nodes.Add "Op2", tvwChild, , "Boston"
End Sub
0
 
jcardenasAuthor Commented:
Thanks,


Jairo
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now