Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
CreateTree
End Sub
Sub CreateTree
Tv.New1("Form1",10,10,100,150)
Node1.New1
Node2.New1
Node3.New1
Tv.AddNewNode("Germany")
Tv.AddNewNode("Italy")
Tv.AddNewNode("France")
Node1.Value=Tv.GetNode(0)
Node1.AddNewNode("Bonn")
Node1.AddNewNode("Berlin")
Node1.Value=Tv.GetNode(1)
Node1.AddNewNode("Roma")
Node1.AddNewNode("Pissa")
Node1.Value=Tv.GetNode(2)
Node1.AddNewNode("Paris")
Node1.AddNewNode("Lion")
End Sub
Sub Tv_AfterSelect
'TextTree IndTree TextNod and IndNode are TextBox
TextTree.Text=Tv.SelectedText
IndTree.Text=Tv.IndexOfNode(Tv.SelectedNode)
Node1.Value=Tv.SelectedNode
TextNod.Text=Node1.Text
IndNode.Text=Node1.IndexOfNode(Node1.Value)
End Sub