Hi guys...
I have created a root node in a function and i want to pass it to another fuction
void CreateRoot()
{
//created a root node named 'root' here and passed it to a function named CreateChild(root);
}
void CreateChild(TreeNode root)
{
//here i need to create a child node to root...m not able to do it
// not able to add root.Nodes.Add(//child);
//not able to see root.'Nodes' here
}
Please help me..its urgent
Jan MontanoPosted Mar 16, 2009, 10:48 PM
// try to fully qualify the TreeNode just to be sure.
private void CreateChild(System.Windows.Forms.TreeNode root)
{
root.Nodes.Add("A", "A");
}