A Simple Digital Clock

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
This sub procedure is a simple digital clock and can be used in many applications. Place 2 labels on your form, labelSec and labelMin and set the caption property to 0 (zero). Then add a timer control as timer1 and call the sub in your form load event for a sample.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: