|
-
May 13th, 2003, 07:24 AM
#1
Thread Starter
Registered User
Timer control *RESOLVED*
is there a way that you can make the timer control interval be set so that it can be longer then a minute something like 5 minutes or would it be easier to do it with API's?
Last edited by Virus00110; May 13th, 2003 at 07:49 AM.
-
May 13th, 2003, 07:34 AM
#2
You can use a timer to count each minute. Something like this :
VB Code:
Dim i As Integer
Private Sub Form_Load()
Timer1.Interval = 60000
i = 0
End Sub
Private Sub Timer1_Timer()
i = i + 1
If i = 5 Then MsgBox "5 minutes have passed"
End Sub
Has someone helped you? Then you can Rate their helpful post. 
-
May 13th, 2003, 07:49 AM
#3
Thread Starter
Registered User
Originally posted by manavo11
You can use a timer to count each minute. Something like this :
VB Code:
Dim i As Integer
Private Sub Form_Load()
Timer1.Interval = 60000
i = 0
End Sub
Private Sub Timer1_Timer()
i = i + 1
If i = 5 Then MsgBox "5 minutes have passed"
End Sub
thanks manavo11 that did the trick.
-
May 13th, 2003, 11:07 AM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|