Hello, I'm developing an application in which I need to copy the content of a richtextbox with all its font settings to another richtextbox.
the code i use is like this
this.chatTxt.SelectionStart = this.chatTxt.Text.Length;
this.chatTxt.SelectionLength = 0;
this.chatTxt.SelectedRtf = this.recvTxt.Rtf;
this should work just fine, however in the chatTxt box does appear only the plain text. if a rtf text is send it does not show.
do anyone know how to solve this issue?

2 answers
Try it like this instead:
answered one year ago by:
17279
0
it does not help. if the text is in RTF it is not copied, only if it is plain text.
my apologies.
the error was hiding somewhere else.
the correct code to copy text from one form to another is:
best of luck
answered one year ago by:
0