I have 2 textbots and first one has several lines. I want to edit each line in textbox 1 to add the text from textbox 2 to each line.
So, if textbox1 has the follow lines:
i am
you are
he is
she is
and the textbox 2 has text: John
then the textbox1 would become
i am John
you are John
he is John
she is John
I tried this:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each strLine As String In TextBox1.Text.Split(vbNewLine)
strLine += " " + TextBox2.Text
Next
End Sub
But no success, any help?