A
ahmeddc
Guest
hi
I have more than one line of textbox, I want all the medium space. Transfer to another text as two lines.
exaple text1
The good person is loved
The good person is loved
The good person is loved
exaple result text2
The good person is
loved
The good person
is loved
The good
person is loved
Dim newText As New List(Of String)
For Each strLine As String In TextBox1.Lines
Dim strarr() As String
strarr = strLine.Split(" "c)
newText.Add(strarr(0).ToString & vbNewLine & strarr(1).ToString)
Next
TextBox2.Clear()
TextBox2.Lines = newText.ToArray
Continue reading...
I have more than one line of textbox, I want all the medium space. Transfer to another text as two lines.
exaple text1
The good person is loved
The good person is loved
The good person is loved
exaple result text2
The good person is
loved
The good person
is loved
The good
person is loved
Dim newText As New List(Of String)
For Each strLine As String In TextBox1.Lines
Dim strarr() As String
strarr = strLine.Split(" "c)
newText.Add(strarr(0).ToString & vbNewLine & strarr(1).ToString)
Next
TextBox2.Clear()
TextBox2.Lines = newText.ToArray
Continue reading...