M
Mostafa Salaheldien
Guest
hello every one
i have textbox with multiline= true it's contian for example and there is 5 spaces
I like to be the best
and i would like to be shown like that
make new line after first space
first line: I
second line : the remaining words
I
like to be the best
My code is working only with 4 words, if it was less or more than 4 words i get error
How to make new line after first space only with unlimited words in line2
My code
Dim str() As String = TextBox1.Text.Split(" ")
TextBox2.AppendText(str(0) + vbCrLf + str(1) + " " + str(2) + " " + str(3))
Continue reading...
i have textbox with multiline= true it's contian for example and there is 5 spaces
I like to be the best
and i would like to be shown like that
make new line after first space
first line: I
second line : the remaining words
I
like to be the best
My code is working only with 4 words, if it was less or more than 4 words i get error
How to make new line after first space only with unlimited words in line2
My code
Dim str() As String = TextBox1.Text.Split(" ")
TextBox2.AppendText(str(0) + vbCrLf + str(1) + " " + str(2) + " " + str(3))
Continue reading...