| Platform: | Visual Basic |
| Task: | Loop through a textbox |
| Discussion: | You need to loop through lines of text from a textbox line by line. |
| Example: | Dim str As String() = TextBox1.Text.Split(New [Char]() {CChar(vbLf)})
For Each s As String In str
TextBox2.Text = TextBox2.Text & vbNewLine & "A new line: " & s
Next |