Refer Print your name on the form also.
(2): When we give 1000 as interval for the timer, it will work in each second by printing “Hello”
C) Output:
(1) : When we give 1000 as interval for the timer, it will work in each second by displaying the message box.
A) Property :
Timer : NAME-Timer1, INTERVAL-1000 |
B) Attaching Code to the Object :
Private Sub Timer1_Timer() MsgBox ("Hello") End Sub |
=========================================================================
(2): When we give 1000 as interval for the timer, it will work in each second by printing “Hello”
A) Property :
Timer : NAME-Timer1, INTERVAL-1000 |
B) Attaching Code to the Object :
Private Sub Timer1_Timer() Print "Hello" End Sub |
(3) : When we give 1000 as interval for the first timer,and 5000 for the second timer , the first timer will work in each second by printing “Hello”and the second timer will work in each 5 seconds by printing “Welcome”
A) Property :
Timer : NAME-Timer1, INTERVAL-1000 Timer : NAME-Timer2,, INTERVAL-5000 |
B) Attaching Code to the Object :
Private Sub Timer1_Timer() Print "Hello" End Sub Private Sub Timer2_Timer() Print "Welcome" End Sub |