On clicking of button your name in textbox to display into label in VB.NET.(one textbox,label,button)
PROPERTIES:
CODEING:
TextBox1 Propertie | |
Text | Enter Your Name |
Label Properties | |
Text |
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: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
Comments
Post a Comment