Thanks for the reply,

I get this error:

System.IndexOutOfRangeException was unhandled
Message="Index was outside the bounds of the array."

The textbox where I am trying to write text to is empty.

vb.net Code:
  1. Dim lines As String() = TextBox1.Lines
  2.  
  3. lines(0) = "test"
  4.  
  5. TextBox1.Lines = lines