Question : Get specified line contents

I would like to get the contents of a specified line of multiline textbox. Each line can be a different length. By example, I would like to get the contents of line 5125 from position 1 for the length of the line itself

Answer : Get specified line contents

Try using the Lines() property...

    Dim line As String = TextBox1.Lines(5124) ' <-- 0 based index
Random Solutions  
 
programming4us programming4us