Code: Select all
Public Class Form1
Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
If TextBox2.Text = "example 1" Then
TextBox1.Text = "example 2"
End If
End Sub
End Class
Example
Code: Select all
Public Class Form1
Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
If TextBox2.Text = "example 1" Then
TextBox1.Text = "example 2"
textbox1.text = "example 3"
End If
End Sub
End Class