Excellent tutorial there by mangojack.
You see that the timer is set to an interval, when that interval is up the timers 'Tick' event is called.
This is a subroutine that is named with the name of your timer and then an underscore and then the word Tick
So after setting up the name of the timer and the interval that you want its Tick event to be called and here mangojack gives two times in milliseconds where 1000 milliseconds is 1 second so he shows how to set it to 3 seconds or to 6 seconds (the line to set it to six seconds is commented out) then all you have to do is to turn the timer on and off as you need it.
This is done by the line Timer1.Enabled =
so to turn the timer on you do Timer1.Enabled = True
mangojack shows this done in the Button_Click subroutine so that when the user clicks the button they also turn the timer on.
Then because Timer1 is turned on it will call its Tick subroutine after the set interval so in this case after three seconds Timer1_Tick is called and cleverly in the Timer1_Tick subroutine the timer is turned off again with:
Timer1.Enabled = False
because otherwise if you don't turn it off then that subroutine will be called continuously after each 3 second interval, which can also be a very powerful programming technique.
You'll begin to see a pattern of controls or views and their 'events' where you get the control or view name as you have called them so like
Dim ThisIsMyFirstTimer As Timer, then its event
Sub ThisIsMyFirstTimer_Tick
End Sub
and how to turn it on and off
ThisIsMyFirstTimer.Enabled =
and this pattern follows throughout B4a so it gets really easy to 'intuit'