Results 1 to 4 of 4

Thread: Create a running clock.....

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Create a running clock.....

    Hello,

    I did this fairly simply in MS Access but that was then and this is....well.....


    Anyway, I basically want a form to load and have a label that displays the running time as HH:MM:SS and it should be a running clock. The seconds should actually be moving. (not just display the current time).


    I have a feeling this is relatively simple but my searches of a few forums and Microsoft have turned up very little.

    Thanks!

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    add a timer , set it to enabled and to 25 for the interval then put this in :
    VB Code:
    1. [color=blue]Private Sub[/color] Timer1_Tick([color=blue]ByVal[/color] sender [color=blue]As Object[/color], [color=blue]ByVal[/color] e [color=blue]As[/color] System.EventArgs) [color=blue]Handles[/color] Timer1.Tick
    2.         Label1.Text = DateAndTime.TimeString
    3.     [color=blue]End Sub[/color]
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Thanks!

    Works great! Thanks!

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Hmmm...

    Hello again,

    I am happy with the results but I do have a queston. It appears the time is in the "Military" format. Is there a way to present it as "Civiian" time with the AM and PM?

    Thanks!

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