Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

VS 2010 Text cut-off

$
0
0
Hello.

I want my code to cut off the text but the problem is, that it only copies it. I want to cut off the text from textbox2 and paste it into textbox1.
Here is my code but it only copies the text:
Code:

        Dim t() As String = TextBox5.Text.Split({";"c}, StringSplitOptions.RemoveEmptyEntries)

        TextBox1.Text = String.Empty
        TextBox2.Text = String.Empty

        For j As Integer = 0 To t.Length - 1
            If j < 3 Then
                TextBox2.Text &= t(j) & ";"
            Else
                TextBox1.Text &= t(j) & ";"
            End If
        Next

Can You give me the code that cuts it off?

Thanks a lot :)

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>