Search Tools Links Login

An easy way to do a Clock and Date!!!!!


Visual Basic 6, or VB Classic

This code displays the date and time In digital format!!!
very cool and easy PLEASE VOTE(good votes only) lol only joking

Original Author: info_hacker

Inputs

A form
2 Labels (make them blank)
2 timers (make both intervals 1)

Assumptions

nothing

Returns

nothing

Side Effects

None that i know of.

Code

'Replace the text in the first timer with the following'
Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub
'Replace the text in the Second timer with the following'
Private Sub Timer2_Timer()
Label2.Caption = Date
End Sub
'Remember make sure you set the timer intervals to 1'
'and make sure the labels are blank'
'otherwise it wont work!'

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 88 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.