Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: TreeView control


Message #1 by "Seth Bembeneck" <sbembeneck@c...> on Tue, 16 Oct 2001 02:10:14
   tvu.Nodes.Add , , "root", "Top Level Entry"

   tvu.Nodes.Add "root", tvwChild, "n1", "First Node"
      tvu.Nodes.Add "n1", tvwChild, "k11", "Item 1"
      tvu.Nodes.Add "n1", tvwChild, "k12", "Item 11"
      tvu.Nodes.Add "n1", tvwChild, "k13", "Item 111"

   tvu.Nodes.Add "root", tvwChild, "n2", "Second Node"
      tvu.Nodes.Add "n2", tvwChild, "k21", "Item 2"
      tvu.Nodes.Add "n2", tvwChild, "k23", "Item 22"

Bill

-----Original Message-----
From: Seth Bembeneck [mailto:sbembeneck@c...]

How do you add a node to a treeview control? Then add a sub-node? I'm 
working on a database program and I would like to keep track of the open 
databases in a treeview with it's tables listed also so that the user can 
open a table.


  Return to Index