Display your Full Name in Visual Basic using Dim As Astring

Today I want to share you my finished activity yesterday. In this activity you will learn on how display your Full Name in a LABEL object using Dim As String. I know that it will help you for your program in the future as a beginner.

The objects you needs are Three (3) LABELS, Two (2) TEXTBOXES, One (1) COMMAND BUTTON, and One (1) FRAME.

Just look like this screenshot:

Only the COMMAND BUTTON has a source code. To put the source code in your COMMAND BUTTON simply DoubleClick and enter the source code:

Dim FirstName As String
Dim LastName As String
Dim YourName As String

FirstName = Text1.Text
LastName = Text2.Text
YourName = FirstName + " " + LastName

lblname.Caption = YourName

After you have done, run your Program and give a test. If you do it right, the screenshot will be like this:
Related Posts Plugin for WordPress, Blogger...

No comments:

Post a Comment

Thanks for Commenting us, your comments are highly appreciated!