Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save contents of two rtb's in a single file

Status
Not open for further replies.

kulfanumber

Programmer
Jun 24, 2009
21
PK
How can i save contents of two rtb's in a single file and load them into these rtb's?
 
Assume a RichTextBox.

Several ways. You could just append one to the other then rtb.savefile. If for some reason you want to keep them separate then you could make a third rtb and then add the text from both and then do a save file on it.



-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
 
An XML file would be a good candidate for this. You can reference them as fields and not have to worry about doing any funky stuff trying to keep them separated in the same file.

--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top