By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,396 Members | 1,472 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,396 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Oct 14 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"MarkS" <te*****@sbcglobal.netschrieb
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
Oct 14 '07 #2

P: n/a
DOH, my mistake there...
"Armin Zingler" <az*******@freenet.dewrote in message
news:O6***************@TK2MSFTNGP06.phx.gbl...
"MarkS" <te*****@sbcglobal.netschrieb
>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
Oct 14 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.