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;
}
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Len LPosted Mar 7, 2008, 7:48 PM
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