A minute timer is a timer that allows you to have the interval in
minutes instead of milliseconds.
Such as.
is now
Enter this code into your project
in a new class.
[IMG]http://i27.[censored].com/30wqasg.jpg[/IMG]
Save your project, Build your project, Then look at the top
You will see a component called "MinuteTimer"
[IMG]http://i30.[censored].com/fmupvs.jpg[/IMG]
Coding them MinuteTimer1 is the same as a real timer,
Except the Milliseconds to Minutes and instead of
just Timer1 It's MinuteTimer1.
minutes instead of milliseconds.
Such as.
Code
Timer1.Interval = 60000 ' 1 MinuteCode
MinuteTimer1.Interval = 1 ' 1 MinuteEnter this code into your project
in a new class.
Code
Public Class MinuteTimer
Inherits System.Windows.Forms.Timer
Private _Minutes As Integer = 0
Public Shadows Property Interval() As Integer
Get
Return _Minutes
End Get
Set(ByVal value As Integer)
If value < 0 Then value = 0
_Minutes = value
Try
MyBase.Interval = _Minutes * 60000
Catch : Throw
End Try
End Set
End Property
End ClassSave your project, Build your project, Then look at the top
You will see a component called "MinuteTimer"
[IMG]http://i30.[censored].com/fmupvs.jpg[/IMG]
Coding them MinuteTimer1 is the same as a real timer,
Except the Milliseconds to Minutes and instead of
just Timer1 It's MinuteTimer1.
Code
MinuteTimer1.Interval = 5 ' 5 Minutes
