Using .NET 2.0 I'm trying to traverse a treeview by using the following
// Some other code
// node is a System.Windows.Form.TreeNode
node.ChildNodes.Count
However, I keep getting the following error
System.Windows.Form.TreeNode does not contain a definition for 'ChildNodes'.
No one else seems to have a problem finding this method, where is it?
Mattias Sjögren - 30 Dec 2005 11:54 GMT
>No one else seems to have a problem finding this method, where is it?
The property is simply called Nodes, not ChildNodes.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.