I have an application for a Windows phone. In the application, I have a text field whose acceptsreturn property is true.
What I want to do is create a line from a text field and replace the new lines with a specific character, something like "NL"
I tried the following, but none of them worked.
string myString = myTextBox.Text.Replace(Environment.NewLine,"NL"); string myString = myTextBox.Text.Replace("\n","NL");
user1924391
source share