Results 1 to 2 of 2

Thread: How to create a Watch

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    8

    How to create a Watch

    I just want to know the Code of creating a watch in my Form can you plizz help me.
    Sabs

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    Create a Label, and a Timer, then use this code:
    VB Code:
    1. Private Sub Form_Load()
    2. Timer1.Interval = 1000 '1 second
    3. End Sub
    4.  
    5. Private Sub Timer1_Timer()
    6. Label1.Caption = Time()
    7. End Sub
    Thats as easy as they come..

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

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