c# winforms loop lines from textbox code example
Example 1: c# for each textbox lines
foreach(string line in textBox1.Lines)
{
//your code, but working with 'line' - one at a time
}
Example 2: c# get string from texbox line
textBox1.Lines[0]