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
No comments:
Post a Comment
Thanks for Commenting us, your comments are highly appreciated!