special characters
C#
2
Posts
2
Posters
0
Views
1
Watching
-
-
Hi All, I have a TextBox txtBx, I set text to it as- txtBx.Text = "brutas\n\nhong\t\nsaw"; now on the application, raw characters(square boxes) are shown in stead of \n, \r etc. I want the display in the textbox as brutas hong saw can any one help me?
You could use a Regex:
string s = "brutas\\n\\nhong\\t\\nsaw"; Regex r = new Regex("\[\\n\\r\\t\]"); string t = r.Replace(s, " ");
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones