|
-
Aug 7th, 2003, 09:00 AM
#1
Thread Starter
Fanatic Member
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!
-
Aug 7th, 2003, 09:09 AM
#2
add a timer , set it to enabled and to 25 for the interval then put this in :
VB Code:
[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
Label1.Text = DateAndTime.TimeString
[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]
-
Aug 7th, 2003, 10:06 AM
#3
Thread Starter
Fanatic Member
-
Aug 7th, 2003, 08:18 PM
#4
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|