471,570 Members | 902 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 software developers and data experts.

Save function

How can I save the text from a rich text box that is generated as a new
rich text box in a tab control? I want to be able to have several rich
text boxes open, and save the one that is under the selected tab.

Thanks!

Feb 8 '06 #1
2 1763
Hi,

theRichTextBox.SaveFile(...) (if to disk)

string rtfData = theRichTextBox.Rtf; (if from one text box to another)
anotherRichTextBox.Rtf = rtfData;

Does this anser your question?

"AxOn" <ha*******@hotmail.com> wrote in message
news:11********************@g43g2000cwa.googlegrou ps.com...
How can I save the text from a rich text box that is generated as a new
rich text box in a tab control? I want to be able to have several rich
text boxes open, and save the one that is under the selected tab.

Thanks!

Feb 9 '06 #2
The problem is that I for example want open several files with text in
them, and then want to save one of the files that I opened. The
saveFile() code i wrote doesnt recognize the richTextBox that is
created as I'm opening the text file, and I end up with an empty file
:( So, I guess my save function saves the empty richTextBox that i
have in the "external" class file. Can't just figure out how to do
it???

Thanks any way..

Feb 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.