Vb.NET - Cheat Sheet for RespondingTimer Event



Responds to a timer event.

'Assembly: System.Windows.Forms

'Namespace: Microsoft.VisualBasic
'Namespace: System.Windows.Forms
'Namespace: System


' Start the timer with the given interval
Private Sub StartTimer()
    Dim Timer1 As New Timer()
    AddHandler Timer1.Tick, AddressOf Timer1_Tick
    Timer1.Interval = interval
    Timer1.Start()
End Sub

Private Sub Timer1_Tick(ByVal obj As Object, ByVal e As EventArgs)

End Sub

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.