String question

In VB you can say

textbox.text = "mytext and then.."+Chr(13)+"and then this"

the result in the textbox is this

mytext and then...

and then this

Is there a similar function in C# that will allow you to put return character into a string (or any character for that matter )

Thanks in advance

Will



Answer this question

String question

  • Brad B

    thanks
  • radexxion

    You can use new line char like:

    "mytext and then.." + Environment.NewLine + "and then this"



  • String question