Link to home
Start Free TrialLog in
Avatar of aijohn
aijohn

asked on

treeview with richtextbox

i have a treeview with ten nodes

two rich text boxes    notes   and   newwork


want to click on a node and write text in notes from node1.txt , node2.txt, etc for that specific node

then enter text in newwork for that node

then save the whole thing so all work will be there next time and can be edited and expanded
Avatar of armoghan
armoghan
Flag of Pakistan image

Make an Class which has two Variables notes and  newwork of String type, attach this Object with the tag object of the nodes, On Focus of any node, populate the strings in the RichTextBoxes by picking the values from Tag object.

Now how to save a Tree you can see the following example
http://www.dotnetspider.com/Technology/KBPages/544.aspx
Avatar of aijohn
aijohn

ASKER

nice examples, but I'm trying to get a specific answer on how to fill textboxes with input from text file
depending on which node is selected
Please, I am so slow...

When you select a Node, you want to view its contents in a richTextBox?
Avatar of aijohn

ASKER

I want to view textfile1.txt when node1 selected
textfile2.txt when node2 selected, etc,, etc
in first text box


then i want to input new text for each node in the second textbox on same form

and then save the whole thing
ASKER CERTIFIED SOLUTION
Avatar of armoghan
armoghan
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial