Member Avatar for Micheal87

Hi, all I've a question, i have a series of links and need to put it in a specific point of a static string, that will need to stay with every cycle and don't want to lose it I make this one till now:

Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        For Each line As String In TextBox1.Lines
            TextBox2.Text = "[link ]" & "(" & TextBox1.Text & ")" & vbCrLf
        Next
    End Sub
End Class

The problem I'm encounting it's when i put text in the first one textbox (That I use as input for after convert with a button and on the other one textbox2 will give me the result) for ex:
Textbox1 text
https first link
http second link
but the result will be that, only the first line, link will be correctly inserted inside of it. How can I fix it, keeping that string also for others too, because there are a lot of it, and also it's possible to make sure that if I'll put ex:
google - https first link
yahoo - http second link
The program find by itself the link part and add this static string ? ex:
google - (link ) (https first link)
yahoo - (link) (https second link)
Thank you in advice.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.