One way to do it would be
Dim lines() As String = TextBox1.Lines
lines(3) = "this is actually line 4"
TextBox1.Text = Join(lines, vbCrLf)
Of course, you would get an error if you didn't have enough existing lines. n alternative would be to use a listbox instead and do
ListBox1.Items(3) = "this is line 4"
directly. Same caveat as above.