Arjun KG

Arjun KG

  • NA
  • 44
  • 10.3k

Im trying to count number of lines in a textBox, how can i find the nu

Mar 6 2021 10:36 AM
Im trying to count number of lines in a textBox, how can i find the number of new lines. If i use TextBox.Text.Contains("\n") i get true if i make a enter. But i cant search for \n using a loop. Is the \n for newline a way to count them or do i need to use LR/CR in some way to fix this?

Answers (2)