Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you enter data in a tree view

Status
Not open for further replies.

Hawkeye123456

Programmer
May 5, 2000
24
0
0
US
I want to use a tree view to show inventory in a game that I am writing. and I dont know how to use it at all. Any help would be nice.
 
U can add tada to treeview by Nodes.Add property of tree view.
for example:
add a treeview to form and use following code to populate data.
Dim nodt As Node
TreeView1.LineStyle = tvwRootLines
Set nodt = TreeView1.Nodes.Add(, , "nod1", "ABC")
Set nodt = TreeView1.Nodes.Add("nod1", 4, "ABC1", "ABC1")
Set nodt = TreeView1.Nodes.Add("nod1", 4, "ABC2", "ABC2")

for detail see help on Nodes property of tree view.
Anil.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top