V
VB Novice Hendri
Guest
I am atemting to use the timer.
I have a small subrutene that I whant to start running 5 sec after the app has started.
Code below is what I have been experiminting with, please help me correct it.
Dim Timer As Integer = 0
Dim WithEvents MyTimer As New Timer
Private Sub MyTimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyTimer.Tick
'Timer 1000 miliseconds = 1 second.
MyTimer.Interval = 1000
MyTimer.Start()
If MyTimer = 5000 Then
MyTimer.Stop()
Call StartupControlSetings()
End If
End Sub
Continue reading...
I have a small subrutene that I whant to start running 5 sec after the app has started.
Code below is what I have been experiminting with, please help me correct it.
Dim Timer As Integer = 0
Dim WithEvents MyTimer As New Timer
Private Sub MyTimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyTimer.Tick
'Timer 1000 miliseconds = 1 second.
MyTimer.Interval = 1000
MyTimer.Start()
If MyTimer = 5000 Then
MyTimer.Stop()
Call StartupControlSetings()
End If
End Sub
Continue reading...