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.
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 |
- ====================================================================
===========================================================
No comments:
Post a Comment