Text Anything in TextBox1 Automatically Text in Textbox2 Using Vb.Net Code
- Go to Start Menu and Open Microsoft Visual Studio .NET (any version)
- Click File Menu and Select the New Project Option..
- Go to Visual Basic and choose window form application and you also set your project name replace with window application1. For More Information check attach image and follow numbering.
- Now you can see your project window form application with Toolbox and Properties Menu.
- Go to Toolbox and click on Submenu All Windows Forms and Drag & Drop Textbox (we are using 2 Textbox, 2 Label : Textbox1 and Textbox2, Label1, Label2 )
- Now Text the Code on Double Clicking Textbox1 and Textbox2
Public Class Form1
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
TextBox2.Text = TextBox1.Text
End Sub
Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged
TextBox1.Text = TextBox2.Text
End Sub
End Class
- Now Run the Project After Code
Download Project Code : automatically text while text in textbox vb.net code