H
halex2000
Hi, I'm new with Csharp and have an annoying problem with RichTextBox: I
cannot change the text by modifying the Rtf property from a derived class.
String sRTF = Rtf;
sRTF = sRTF.Insert(insertloc,
"{\\colortbl
;\\red128\\green0\\blue0;\\red0\\green128\\blue0;\\red0\\green0\\blue255;}");
Rtf = sRTF;
If I print the sRTF content on the console, the ouput is exactly what
expected, with the new string in the correct position.But if I print Rtf
(that should be identical) it is as if I never modified it. Is there
something I miss about CSharp?
Thank you!
cannot change the text by modifying the Rtf property from a derived class.
String sRTF = Rtf;
sRTF = sRTF.Insert(insertloc,
"{\\colortbl
;\\red128\\green0\\blue0;\\red0\\green128\\blue0;\\red0\\green0\\blue255;}");
Rtf = sRTF;
If I print the sRTF content on the console, the ouput is exactly what
expected, with the new string in the correct position.But if I print Rtf
(that should be identical) it is as if I never modified it. Is there
something I miss about CSharp?
Thank you!