How do I add a newline to a windows-forms TextBox?

newline, vb.net, winforms

Solution

Try using `Environment.NewLine`:

Gets the newline string defined for this environment.

Something like this ought to work:

textBox.AppendText("your new text" & Environment.NewLine)

Problem

I am trying to add a line of text to a TextBox component in VB.net, but I cannot figure out for the life of me how to force a new line. Right now it just adds onto what I have already, and that is not good. I have tried copying the actual linebreaks, didn't work. I tried AppendText(), didn't work. How on earth do I do this? It is multiline already.

Original source