Question : VB.Net - remove first line from textbox

Hi Experts.  I have a multiline textbox that receives lines of text automatically.  I would like to limit the number of lines to say 200 so when that number is reached, the first line is deleted.
I can delete the first line OK but the second line does not move up to replace it.  Any way to do this please?

Answer : VB.Net - remove first line from textbox

You can try something like the following code
1:
2:
Dim b As String() = Split(TextBox1.Text, vbNewLine)
TextBox1.Text = String.Join(vbNewLine, b, 1, b.Length - 1)
Random Solutions  
 
programming4us programming4us