Public Class Form1 Dim X As String = TextBox1.Text Dim Y As String = TextBox2.Text Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click X = TextBox1.Text Y = TextBox2.Text TextBox3.Text = X + Y End Sub End Class
Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim X As String = TextBox1.Text Dim Y As String = TextBox2.Text TextBox3.Text = X + Y End Sub End Class