hey all,
This is what I have a treeview with static data as nodes.(since each node has a large amount of information with in it I can not add it all under one treeview--procedure too large). So I decide to use listboxes(indexed) to do this.
this is my code:--it does not work
prviate sub form_load()
dim i as integer
i = 0 to 83
lstData1(i).visible = false
end sub
Private Sub tvData1_NodeClick(ByVal Node As MSComctlLib.Node)
Select case node.key
case 1 ' a
if tvdata1.selecteditem.key = "a" then lstData1(0).visible= true
case 2 ' b
etc
etc
case 84 'aaaf
if tvdata1.selecteditem.key = "aaaf" then lstData1(83).visible = true
end select
end sub
Any clues what I am doing wrong?
Aaron
This is what I have a treeview with static data as nodes.(since each node has a large amount of information with in it I can not add it all under one treeview--procedure too large). So I decide to use listboxes(indexed) to do this.
this is my code:--it does not work
prviate sub form_load()
dim i as integer
i = 0 to 83
lstData1(i).visible = false
end sub
Private Sub tvData1_NodeClick(ByVal Node As MSComctlLib.Node)
Select case node.key
case 1 ' a
if tvdata1.selecteditem.key = "a" then lstData1(0).visible= true
case 2 ' b
etc
etc
case 84 'aaaf
if tvdata1.selecteditem.key = "aaaf" then lstData1(83).visible = true
end select
end sub
Any clues what I am doing wrong?
Aaron