Go Premium for a chance to win a PS4. Enter to Win


TreeView Control

Posted on 2000-04-22
Medium Priority
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.


Jairo Cardenas
Question by:jcardenas
LVL 28

Accepted Solution

AzraSound earned 60 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

Author Comment

ID: 2743507


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

877 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