I would like textbox2 to display the next line after I search the textbox.
Can someone advise ?
Can someone advise ?
Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Using reader As New StreamReader(pathto)
While Not reader.EndOfStream
Dim line As String = reader.ReadLine()
If line.Contains("SearchString") Then
TextBox1.Text = line
TextBox2.Text = "I want the next line to appear here"
Exit While
End If
End While
End Using
End Sub
Comment