M
michelqa
Hi,
I'm trying to add nodes to a specific node of a treeview.
With VS 2005 and more (>= .net 2.0) I can set the Nodes.Name property
and then use Nodes.Find("MyNodeName",true) to add nodes to a
particular node of my treeview.
ex :
TreeNode[] nodes =
MyNode.Nodes.Find(GetParent(WindowChildHandle).ToString(), true);
if (nodes.GetLength(0) != 0)
{
nodes[0].Nodes.Add(WindowChildHandle.ToString(),
ChildWindowClassName + " [" + WindowChildHandle.ToString() +
"]");
}
else
{
//FAIL
}
My problem is that my application need to be compiled in VS 2002 (net
1.0) and for some reasons there is no Node.Name and Nodes.Find. Why?
any alternative? Is there something missing to be able to use te
Nodes.Find ??
Thanks
I'm trying to add nodes to a specific node of a treeview.
With VS 2005 and more (>= .net 2.0) I can set the Nodes.Name property
and then use Nodes.Find("MyNodeName",true) to add nodes to a
particular node of my treeview.
ex :
TreeNode[] nodes =
MyNode.Nodes.Find(GetParent(WindowChildHandle).ToString(), true);
if (nodes.GetLength(0) != 0)
{
nodes[0].Nodes.Add(WindowChildHandle.ToString(),
ChildWindowClassName + " [" + WindowChildHandle.ToString() +
"]");
}
else
{
//FAIL
}
My problem is that my application need to be compiled in VS 2002 (net
1.0) and for some reasons there is no Node.Name and Nodes.Find. Why?
any alternative? Is there something missing to be able to use te
Nodes.Find ??
Thanks