Enter your name in the TextBox , a message will attach to your name .
Refer Create a form to enter some text and have ... also
(A)Program Design :
(B) Property(Controls Used) :
- One Label with Caption "Enter your Name"
- One TextBox ,Name-Text1 , and the Text Property is Blank..
- One Command Button , Name-Command1 , Caption-Print
- One more Label , Name-Label2 , and its Caption should kept Blank (In the above given figure, the caption of Label2 is shown for your better understanding)
(C) Attaching Code to the Object :
Private Sub Command1_Click()
Label2.Caption = "Welcome " & Text1.Text
End Sub
|
No comments:
Post a Comment