5. Write VB program to place three text boxes onto the form. Enter different strings in first and second textbox. On clicking to command button, concatenation of two strings should be displayed in third text box.

Private Sub cmdClear_Click()
txtStr1.Text = “”
txtStr2.Text = “”
txtStr3.Text = “”
End Sub

Private Sub cmdDisplay_Click()
txtStr3.Text = txtStr1.Text + txtStr2.Text
End Sub

Private Sub cmdExit_Click()
Unload Me
End Sub

Private Sub Form_Activate()
End Sub



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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s