Change the text of a line vb 2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BarryM
    New Member
    • Mar 2008
    • 32

    Change the text of a line vb 2005

    Say if there is a bunch of writing in a text box and you want to change the first line to lets say "line 1" and the last line to "last line" but keep the lines in the middle the same text, how can i do this

    i had tried this but failed
    Code:
    dim last_line as integer = txttext.lines.length -1
    txttext.lines(0) = "line1"
    txttext.lines(last_line) = "last line"
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    question moved to .net forum.

    Comment

    Working...