B
Bill
Is there a way to prevent the RichTextBox (RTB) control (Framework
2.0) from removing carriage returns? When I set the .Text property,
it
converts all \r\n to \n.
I have Wordwrap set to false. I am setting the Text property to a
string that includes many lines, some end with \r\n, others with only
\n. AFter the user edits the text, it is saved to a file with the
Write method and I want that file to preserve the line endings that
were passed into the RTB. Therefore, I cannot do a global replace on
all the \n as a workaround. If it were not for the fact that the text
length exceeds the Textbox control limit, I would use that.
Bill
2.0) from removing carriage returns? When I set the .Text property,
it
converts all \r\n to \n.
I have Wordwrap set to false. I am setting the Text property to a
string that includes many lines, some end with \r\n, others with only
\n. AFter the user edits the text, it is saved to a file with the
Write method and I want that file to preserve the line endings that
were passed into the RTB. Therefore, I cannot do a global replace on
all the \n as a workaround. If it were not for the fact that the text
length exceeds the Textbox control limit, I would use that.
Bill