J
jcoon
All,
I've tried working on this this before with no luck. I've looked all over
and can't seem to find a sample that I can redo (understand) to test with my
sample.
I've created a treeview with nodes from the sample below. I'd like to be
able to use the TreeView1_AfterSelect to retrieve the child node text values
and tag values.
to place in message box or userform labels.
If I select parent node Visual-Runway-A in the treeview I'd like to collect
the text values and tag values for all nodes(0)...under the parent
Visual-Runway-A. )
Pretty new to dot net.
Thanks for all your help.
John
TreeView1.Nodes.Add("Visual-Runway-A")
TreeView1.Nodes(0).Tag = ("Visual-Runway-A")
TreeView1.Nodes(0).Nodes.Add("Inner Width").Tag = "250"
TreeView1.Nodes(0).Nodes.Add("Outer Width").Tag = "1250"
TreeView1.Nodes(0).Nodes.Add("Surface Length").Tag = "5000"
TreeView1.Nodes(0).Nodes.Add("Slope").Tag = "20:1"
TreeView1.Nodes(0).Nodes.Add("Radius").Tag = "5000"
TreeView1.Nodes.Add("Visual-Runway-B")
TreeView1.Nodes(1).Tag = ("Visual-Runway-B")
TreeView1.Nodes(1).Nodes.Add("Inner Width").Tag = "500"
TreeView1.Nodes(1).Nodes.Add("Outer Width").Tag = "1500"
TreeView1.Nodes(1).Nodes.Add("Surface Length").Tag = "5000"
TreeView1.Nodes(1).Nodes.Add("Slope").Tag = "20:1"
TreeView1.Nodes(1).Nodes.Add("Radius").Tag = "5000"
continues.......to nodes(5) not shown
I've tried working on this this before with no luck. I've looked all over
and can't seem to find a sample that I can redo (understand) to test with my
sample.
I've created a treeview with nodes from the sample below. I'd like to be
able to use the TreeView1_AfterSelect to retrieve the child node text values
and tag values.
to place in message box or userform labels.
If I select parent node Visual-Runway-A in the treeview I'd like to collect
the text values and tag values for all nodes(0)...under the parent
Visual-Runway-A. )
Pretty new to dot net.
Thanks for all your help.
John
TreeView1.Nodes.Add("Visual-Runway-A")
TreeView1.Nodes(0).Tag = ("Visual-Runway-A")
TreeView1.Nodes(0).Nodes.Add("Inner Width").Tag = "250"
TreeView1.Nodes(0).Nodes.Add("Outer Width").Tag = "1250"
TreeView1.Nodes(0).Nodes.Add("Surface Length").Tag = "5000"
TreeView1.Nodes(0).Nodes.Add("Slope").Tag = "20:1"
TreeView1.Nodes(0).Nodes.Add("Radius").Tag = "5000"
TreeView1.Nodes.Add("Visual-Runway-B")
TreeView1.Nodes(1).Tag = ("Visual-Runway-B")
TreeView1.Nodes(1).Nodes.Add("Inner Width").Tag = "500"
TreeView1.Nodes(1).Nodes.Add("Outer Width").Tag = "1500"
TreeView1.Nodes(1).Nodes.Add("Surface Length").Tag = "5000"
TreeView1.Nodes(1).Nodes.Add("Slope").Tag = "20:1"
TreeView1.Nodes(1).Nodes.Add("Radius").Tag = "5000"
continues.......to nodes(5) not shown