2
Answers

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

Arjun KG

Arjun KG

3y
518
1
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)