Program to display content of textbox using button in vb.net

In this program we are going to display the content of Textbox on a Label on Button Click.

Program UI :

Screenshot (8).png

Program Code:

Public Class programmingfromscratch

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Label3.Text = “Hello, ” + TextBox1.Text + ” You Study in ” + TextBox2.Text + “!”

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Label3.Text = “” ‘
End Sub

End Class

Output:

Screenshot (9).png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s