CLOCK AND TIMERS

dubiousp

Member
Local time
Today, 10:35
Joined
Mar 6, 2020
Messages
86
Good morning my current form has a live clock on it which uses the timer on form load.. There are then a series of tabbed pages, one of which I would like to show a counter that counts to 30 at 2 beats per second then holds for 4 seconds then recounts.. yes a cpr timer

It would be really good if I could count the differing cycles
 
create a hidden form and use its timer event.
 
2 beats/sec = 500.
Set the timer interval = 500.

The event would be to change the color of a box, like a strobe.
TxtBox.backcolor =vbWhite
Then TxtBox.backcolor =vbRed

Put in a counter to increment every second (1000 ticks)
After 30 ,pause the strobe.
 
here is a demo, open Form1.
 

Attachments

Thats given me the steer, I have just copy and pasted but will alter eventually.. Compression rate is good next stage for me is to add in the four seconds a seperate count of 2 then a counter to count cycles
 

Attachments

Users who are viewing this thread

Back
Top Bottom