Copy text from one textbox to another - Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

copy text in visual basic

The following example describes how to to copy the text of one textbox to another using a button

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        TextBox2.Text = TextBox1.Text
    End Sub

To combine the text of two textboxes into one textbox:

combine two textboxes in visual basic .net
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        TextBox3.Text = TextBox1.Text & " " & TextBox2.Text
    End Sub


Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2017 - All Rights Reserved.