Results 1 to 2 of 2

Thread: PROGRAM A RUNNING CLOCK AND DATE

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    2

    Post

    IM DOING A PROJECT AT SCHOOL, AND ON THE PROJECT I NEED TO PUT THE DATE AND TIME (CLOCK) AND THEY HAVE TO BE RUNNING.

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Posts
    219

    Post

    you going to laugh on how easy this is check out the code you need 2 label's and a timer

    Code:
    Private Sub Form1_Load()
    Timer1.Interval = "1"
    Timer1.Enabled = true 
    End Sub
    
    Private Sub Timer1_Timer()
    Label1.Caption = "The Time Is : " & Time
    Label12.Caption = "The Date Is : " & Date
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width