J
Jeff
IDE = Visual Studio 2003 .Net
OS = XP Pro
**********************************
treeviews:
Below is an illustration of a treeview with som data...
? Root
? .Net
? C#
When I run treeView1.Nodes.Count against the treeview example above I get
the value 1. But I thought I should get 3
This example:
? Root
? .Net
? C#
? ASP.NET
Here treeView1.Nodes.Count = 2
Is it so that treeView1.Nodes.Count only returns the number of nodes at root
level?.. I think that is stranged!
Any tips about this??
**********************************
About the TreeNodeCollection.Contains Method:
In the help file about this method I read this : "Determines whether the
specified tree node is a member of the collection."
From my understanding of this method the parameter to this method is a
treenode. But what if I only have the text value for the treenode and not
its name, then i cannot use the Contains method... Am I right here, or is
there a way I can search a treeview for a node without knowing its name???
Any tips about this??
*************************************************
Regards
Jeff
OS = XP Pro
**********************************
treeviews:
Below is an illustration of a treeview with som data...
? Root
? .Net
? C#
When I run treeView1.Nodes.Count against the treeview example above I get
the value 1. But I thought I should get 3
This example:
? Root
? .Net
? C#
? ASP.NET
Here treeView1.Nodes.Count = 2
Is it so that treeView1.Nodes.Count only returns the number of nodes at root
level?.. I think that is stranged!
Any tips about this??
**********************************
About the TreeNodeCollection.Contains Method:
In the help file about this method I read this : "Determines whether the
specified tree node is a member of the collection."
From my understanding of this method the parameter to this method is a
treenode. But what if I only have the text value for the treenode and not
its name, then i cannot use the Contains method... Am I right here, or is
there a way I can search a treeview for a node without knowing its name???
Any tips about this??
*************************************************
Regards
Jeff