Click to See Complete Forum and Search --> : TreeView control in VC++.NET


scorpionguy
May 25th, 2006, 04:14 PM
Hi,
Is there a way where I can add the nodes to the treeview control programatically...I want it to be added without clicking any button.. and I have around 10,000 nodes and I have the list of parent and childern and they go upto 8 or 9 levels down.... Please any suggestions wud be gr8...thanks

ThermoSight
May 25th, 2006, 11:37 PM
Scorpion,

check the very first thread .... the Add is used in a post there.

Or you can check the IDE HELP section.

The answers may be found in the IDE Help section, or in any of a million tutorials on C++ .NET which may be purchased virtually ANYwhere. Soon, you'll be able to buy'em at the checkout counter at your grocer's.

treeView1->Nodes->Add( TreeNode* or String * ijk);

It is important to note that, as one might expect due to the tree-like nature, TreeNodes can have TreeNodes as well.

TreeNode *tn = new TreeNode();
tn->Nodes->Add(TreeNode* or String * ijk);

Best wishes,

bill