How To Make Date and Time on VB 6.0


Lesson 4 - How To Display Time and Date in Visual Basic 6.0


Ouke Guys,.. today we can make simple application again, made in Vb 6.0
Now, we will make "How to a Form can Display Date and Time"

Ok, this for the Tutorials, just Follow the Step,

STEP :
1. Component Needed :
    - Form1
    - Two Label ( Label1 + Label2)
    - One Timer ( Timer1 )
    - Coding
    - Picture (if you want add picture into your project)
    - Cofee ... ahaaa i m Joke, hihihhi

2. Open your Vb 6.0,


FORM PROPERTIES :
  Border Style  = None
  Picture         = add your pic ( *.jpg)

COMPONENT PROPERTIES :
  Timer                 : Interval = 1
  Label1 & Label2   : - Font    = Change font you want
                             - ForeColor    = Change Color Display
                             - BackStyle    = 0 - Transparent
                             - Alignment = 2 - Center



 
CODING :
3. Double Click Timer1, or Right Click > View Code.
   

    add this code into Timer1:
Private Sub Timer1_Timer()
Label1.Caption = Date
Label2.Caption = Time
End Sub


4. Hit F5 to Preview,
    You are done,.. and you can add the information Project, and make the exe. files

5. Enjoy.


You can Download The Project Files,


File name : [VB6] L3 - Date and Time (VbRoom)
File Type : .rar [ .vbp]
Size : 90 Kb 

You can Follow The Step By Watch Video ^_^




Thanks For Read and Visit, Best Wishes ................... DindaPhobia.
Good Job.


Tags : Date and Time, how to make date and time on VB, Visual Basic 6.0, cara membuat jam dengan Visual Basic 6.0, bagaimana membuat jam dengan Visual basic 6.0, Source Code, kode Jam dan waktu pada VB 6.0, Studio.

Related Post



0 comments:

Post a Comment

Enter Your Comment For This Post.
Please Do not SPAM!