I\'m developing a program that I\'m using a string(generatedCode) that contains some \\n to enter a new-line at the textBox that I\'m using it(
generatedCode
\\n
Add a carriage return (\r) and it should work:
TextBox1.Text = "First line\r\nSecond line";