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, July 13, 2011

VB-38 : Create a form to enter some text and have the result

Create a form where the user can enters some text into the text box control and have the result output into a label in a different font with the colour change in the background of the form.

Refer Simple Programs(2) and Print your name on the form also.
A)     Program Design : 


(B) Property(Controls Used) :
  •      Label1  : Caption - Name
  •      Label2  :  No Caption , Font Name-Garmond,Style-Bold Italic,Font Colour-&H000040C0&
  •      TextBox - Text Property shold kept blank

(C) Attaching Code to the Object :
             
Private Sub Text1_Change()
Label2.Caption = "Name:" + Text1.Text
End Sub


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

    No comments: