Tree


A TreeView is a user interface control that presents a hierarchical view of information.

Contents

Purpose

A tree is generally used to navigate in a complex data structure.

Samples

The following example demonstrates the fill a TreeView with sample-data.

   Dim Parent As Node
 
   Parent = Tree1.Nodes.Add(Nothing, tvwFirst, "Users", "Users", UsergrayPng)
   Tree1.Nodes.Add(Parent, tvwFirst, "Sayid Jarrah", "Sayid Jarrah")
   Tree1.Nodes.Add(Parent, tvwFirst, "Kate Austen", "Kate Austen")
   Tree1.Nodes.Add(Parent, tvwFirst, "Mr. Eko", "Mr. Eko")
   Tree1.Nodes.Add(Parent, tvwFirst, "Ana-Lucia Cortez", "Ana-Lucia Cortez")
   Tree1.Nodes.Add(ParentNodeUser, tvwFirst, "Jack Shephard", "Jack Shephard")
   Parent.Expand = True
 
   Parent = Tree1.Nodes.Add(Nothing, tvwFirst, "Food", "Food", BasketPng)
   Tree1.Nodes.Add(Parent, tvwFirst, "Burger", "Burger")
   Tree1.Nodes.Add(Parent, tvwFirst, "Pizza", "Pizza")
   Tree1.Nodes.Add(Parent, tvwFirst, "Pasta", "Pasta")
   Parent.Expand = True


Differences to VB6

Reference

Retrieved from "http://www.jabaco.org/wiki/Tree"

This page has been accessed 2,553 times. This page was last modified on 14 August 2009, at 15:23.



This page has been accessed 2,553 times. This page was last modified on 14 August 2009, at 15:23.