VB.NET Rich TextBox Newline Character removal
richtextbox, vb.net
Solution
I was able to figure it out. You have to use ControlChars.Lf so the code would be along the lines of the following:
RichTextBox1.Text = RichTextBox1.Text.Replace(ControlChars.Lf, ",")
Problem
I am using a Rich TextBox in VB.NET and passing to a StringBuilder. I need to replace the New Line character from the TextBox with either a space or a comma. Problem is the standard codes for new line don't seem to be picking up this New Line character in this case. Is there a specific character used in Rich TextBoxes as the New Line? Any help or suggestions will be appreciated.