Re: How can I set the interval property to 30 or 60 minutes?
- From: "Norm Cook" <normcook@xxxxxxxxxxxx>
- Date: Tue, 20 Oct 2009 07:01:49 -0500
"Raj" <Raj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8CC0D628-8CAB-4142-9EAA-EA49E9E2DC2F@xxxxxxxxxxxxxxxx
How can I set the interval property of the timer control to 30 or 60
minutes,
or once day?
Thank you
Regards
Raj
The Interval property is measured in milliseconds and the max value
for Interval is 65535 or a little over a minute.
Set your Timer's interval to 60000, or 1 minute. Then the timer event
will be called each minute. Set up some static or module level vars
in your Timer routine to count minutes, something like;
Private Sub Timer1_Timer()
Static Min As Long
Min = Min + 1
If Min = 60 Then
Min = 0
'do something once an hour
End If
End Sub
.
- Follow-Ups:
- Re: How can I set the interval property to 30 or 60 minutes?
- From: Karl E. Peterson
- Re: How can I set the interval property to 30 or 60 minutes?
- References:
- Prev by Date: How can I set the interval property to 30 or 60 minutes?
- Next by Date: Re: How can I set the interval property to 30 or 60 minutes?
- Previous by thread: How can I set the interval property to 30 or 60 minutes?
- Next by thread: Re: How can I set the interval property to 30 or 60 minutes?
- Index(es):
Relevant Pages
|