I have a multiline textbox, which the user would type something into and press a button. The button does something with the text, depending on which characters are used. But i can't work out how to recognise a newline in the textbox. I thought i could do this:

Code:
if (tbxIn.Text[i] == Convert.ToChar(Environment.NewLine))
{
      // action here...
}