|
-
December 2nd, 2009, 02:55 PM
#1
Treeview Auto select?
Hey there gurus!!; )
I have my made my treeview like this.
Treeview and then i have 2 textboxes.
First textsbox is the parent:
TreeNode tr = new TreeNode(textBox1.Text);
treeView1.Nodes.Add(tr);
Which reads the textbox1.
Then i have a Child:
TreeNode tr2 = new TreeNode(textBox2.Text);
TreeNode tr3 = new TreeNode();
tr3 = treeView1.SelectedNode:
tr3.Nodes.Add(tr2);
I want the selected node to be textbox1.text?
How do i do this?
Thank you for helping me, i appriciate that!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|