Results 1 to 2 of 2

Thread: program running date& time

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    2

    Post

    IM DOING A PROJECT AT SCHOOL AND I NEED TO HAVE THE DATE & TIME SHOWING AND RUNNING. I NEED THE CODE TO DO THIS. PLEASE HELP THIS IS A VERY IMPORTANT FINAL PROJECT..

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Post

    Put a timer (Timer1) and a label (Label1) on your form, and add this code:

    Private Sub Form_Load()
    Timer1.Interval = 100
    Timer1.Enabled = True
    End Sub

    Private Sub Timer1_Timer()
    Label1.Caption = Now
    End Sub


    ------------------
    Yonatan
    Teenage Programmer
    E-Mail: [email protected]
    ICQ: 19552879



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