Click here to Skip to main content
15,905,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi when i write following command
C#
for (int j = 0; i <= this.mytv.Nodes(i).Nodes.Count - 1; j++)
{

}


this error be shown after compile
Error 2 No overload for method 'Nodes' takes 1 arguments

thanks
Posted
Updated 25-Jan-15 18:11pm
v2
Comments
SrikantSahu 25-Jan-15 16:25pm    
Please mention the datatype of mytv...
BillWoodruff 27-Jan-15 3:41am    
In addition to Peter's correct explanation of why this won't work I note that you are using 'i in the for-loop, but you should be using 'j !

1 solution

I assume that mytv is a TreeView class...Nodes is a collection property of TreeView and not a method, so it should be handled like an array...
C#
this.mytv.Nodes[i].Nodes.Count
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900