my english is so so...
how can i do to build a node with treeview
-System info
-driver
-hotfix
void treeView1_NodeMouseClick(object sender,
TreeNodeMouseClickEventArgs e)
{
textBox1.Text = e.Node.Text;
}
Treeview with node in c#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Len L25 pointsPosted Mar 7, 2008, 2:48 PM EST
To add a tree node to your tree view
simplest form:
treeView1..SelectedNode.Nodes.Add(new TreeNode("node text")
this will add a child node to the node which is selected in your tree view.
void treeView1_NodeMouseClick(object sender,
TreeNodeMouseClickEventArgs e)
{
textBox1.Text = e.Node.Text;
treeView1..SelectedNode.Nodes.Add(new TreeNode(textBox1.Text));
}
Hope this helps