hi,i m making a windows forms application and i want to make a treeview which displays input of textbox Under the Parent Node .
i have tried searching over the internet,but nothing seems to be working.
i have added the parent nodes from the properties tab,but how do i change the values of child nodes or add new ones under specific parent nodes?
i have tried these codes but none of these work!
// treeView1->Nodes->(textBox1->Text,1);
// TreeNode n;
// n.Nodes->Add(textBox1->Text);
//treeView1->Nodes->TreeView1->Items->Item[0], "Europe");
/* TreeNode node;
node = treeView1->Nodes->Add("Fruits");
node.Nodes->Add("Apple");
node.Nodes->Add("Peach");
node = treeView1->Nodes->Add("Vegetables");
node.Nodes->Add("Tomato");
node.Nodes->Add("Eggplant");*/
p.s The Syntax of Visual C++ 2008 is also different,i guess.
any help would be greatly appreciated!
thanks