Skip to content

February 22, 2013

Swap Two Textbox values using VB.NET

image001

Public Class Form1

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

End Sub
End Class

image003