Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Wednesday, August 10, 2011

VB-93 : Simple Programs(2)

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

(D) Output :



(E) Errors :

If found any errors while running your VB program, or want to put your comment about any  program , please click Comment section , to post.

      • ====================================================================
        Back to Home   &  VB
    ===========================================================

    No comments: