by Drew Wutka (2 Submissions)
Category: OLE/COM/DCOM/Active-X
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(4 Votes)

Digital Clock, which also will fire a Time Reached event for 'triggers' that you can set up during design time, runtime, or even from the control itself during run time. This clock has four user options, which can be locked with it's properties. By clicking on the Clock Numbers, you can change the Colors from Red to Blue to Green. Right Clicking on the clock numbers will change it from 12 to 24 hour time. Clicking on the clock's colons will display the 'trigger events' you have set up, and left clicking on the clock's colons will allow you to add/modify/edit the trigger events. Please rate this code!
Inputs
The TimeReached event needs at least one time, hour, minute, and second.
Assumes
DO NOT ASSUME THIS IS MORE EFFICIENT THEN A TIMER CONTROL. It can't be, since it has a timer control in it. It is just an expansion on top of a timer control. In fact, there is no way to get around what a Timer control does, counting clock ticks.
Code Returns
When the TimeReached Event fires, it will return which 'trigger' it is firing for. An easy way to have different code run at different times.
Side Effects
May cause you to stop using the Plain Timer Control. (unless you need to run something every minute or so.)
API DeclarationsNone.