Treeview : Adding a node to a specific existing node with Net 1.0(work with 2.0)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • michelqa@yahoo.ca

    Treeview : Adding a node to a specific existing node with Net 1.0(work with 2.0)

    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("MyN odeName",true) to add nodes to a
    particular node of my treeview.

    ex :

    TreeNode[] nodes =
    MyNode.Nodes.Fi nd(GetParent(Wi ndowChildHandle ).ToString(), true);
    if (nodes.GetLengt h(0) != 0)
    {
    nodes[0].Nodes.Add(Wind owChildHandle.T oString(),
    ChildWindowClas sName + " [" + WindowChildHand le.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
  • michelqa@yahoo.ca

    #2
    Re: Treeview : Adding a node to a specific existing node with Net 1.0(work with 2.0)

    Still need help on this... :(

    Just need to know how to add items to a treeview node by specifying
    the NAME or TAG or TEXT. This node can be anywere in the treeview
    and is unique.

    Is anyone know why there is no Node.Name and Nodes.Find when compiling
    my application in VS 2002 (work with VS 2005)

    Thanks!

    Comment

    • michelqa@yahoo.ca

      #3
      Re: Treeview : Adding a node to a specific existing node with Net 1.0(work with 2.0)

      Ok I found the answer in this thread :


      :)

      Comment

      Working...