3,034 questions
Hello,
Welcome to our Microsoft Q&A platform!
In TextBox, the default line separator is \r
, so try this:
var modelLines = ModelTextBox.Text.Split('\r');
Thanks.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a TextBox with AcceptsReturn="True"
Now I want to read from it line by line
I tried code:
string[] modelLines;
modelLines = ModelTextBox.Text.Split('\n');
But it doesnt work, how to read from TextBox line by line?
Hello,
Welcome to our Microsoft Q&A platform!
In TextBox, the default line separator is \r
, so try this:
var modelLines = ModelTextBox.Text.Split('\r');
Thanks.