Why won't this work in adding nodes to a treeview in a VB.NET Windows Application

  • Thread starter Thread starter MarkS
  • Start date Start date
M

MarkS

Hello Everyone

tvServices.Nodes.Add("M1", "Parent")
tvServices.Nodes("M1").Nodes.Add("S1", "Child")
tvServices.Nodes("S1").Nodes.Add("x1", "Grand Child")

The 1st 2 lines work fine but why doesn't the 3 line find the node from line
2

Thanks
Mark
 
MarkS said:
Hello Everyone

tvServices.Nodes.Add("M1", "Parent")
tvServices.Nodes("M1").Nodes.Add("S1", "Child")
tvServices.Nodes("S1").Nodes.Add("x1", "Grand Child")

The 1st 2 lines work fine but why doesn't the 3 line find the node
from line 2

tvServices.Nodes("M1").Nodes("S1").Nodes.Add("x1", "Grand Child")


Armin
 
Back
Top