By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,018 Members | 870 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,018 IT Pros & Developers. It's quick & easy.

Problem inserting formatted text from richtext into anotherrichtextbox

P: n/a
So, if I have 2 richtextboxes, call them rtbSource and rtbTarget.

I can say rtbTarget.rtf = rtbSource.rtf and it works.

But if rtbTarget already has something in it, how can I 'insert' the
text from source into target?

If I use rtbTarget.selectedtext = rtbSource.text, it inserts
plaintext.

If I use rtbTarget.selectedtext = rtbSource.rtf, it inserts plaintext
with all the rtf commands and symbols.

Any help? Thanks bunches!
Mar 19 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
SelectedRtf property.

IMAFriend wrote:
So, if I have 2 richtextboxes, call them rtbSource and rtbTarget.

I can say rtbTarget.rtf = rtbSource.rtf and it works.

But if rtbTarget already has something in it, how can I 'insert' the
text from source into target?

If I use rtbTarget.selectedtext = rtbSource.text, it inserts
plaintext.

If I use rtbTarget.selectedtext = rtbSource.rtf, it inserts plaintext
with all the rtf commands and symbols.

Any help? Thanks bunches!

Mar 19 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.