I am doing my IT PROJECT (CV MAKER) at the moment in college and i have little bit problem with reding lines in txtbox.
Dim lines() As String = TextBox4.Text.Split(Environment.NewLine) Try lines(0) = " -" & lines(0) lines(1) = " -" & lines(1) lines(2) = " -" & lines(2) lines(3) = " -" & lines(3) lines(4) = " -" & lines(4) Catch ex As Exception GoTo filan End Try filan: MsgBox(lines(0) & vbNewLine & lines(1) & vbNewLine & lines(2) & vbNewLine & lines(3) & vbNewLine & lines(4))
What i want to do here is, read all lines in TextBox and assigne them to variables, as well as add somethig before them and stick all of them into one variable
for example if my text box will have 2 lines :
My Name is
"-" & line
"-" & line2
so it will look like
- My Name is
and all of that in one variable
PS. this text box may have up to 15 -20 lines so i need some help for those numbers.