Solved

TreeView Control

Posted on 2000-04-22
2
157 Views
Last Modified: 2010-05-02
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
Comment
Question by:jcardenas
2 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 15 total points
ID: 2740765
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
 

Author Comment

by:jcardenas
ID: 2743507
Thanks,


Jairo
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question