Skip to main content

On clicking of button your name in textbox to display into label in VB.NET.(one textbox,label,button)

PROPERTIES:
TextBox1 Propertie
TextEnter Your Name
Label Properties
Text
CODEING:
Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Label.Text = TextBox1.Text
    End Sub
    Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.Click
        TextBox1.Text = ""
        Label.Text = ""
    End Sub
End Class
DESIGNING:

Comments