While playing around with a Silverlight app, I discovered something that totally fits the bill:
vb Code:
Imports System.Windows.Threading Dim WithEvents timer As DispatchTimer = New DispatchTimer timer.Interval = New Timespan(0,0,1) ' Set the timer's interval Private Sub TimerTick(ByVal sender As Object, ByVal e As System.EventArgs) Handles timer.Tick ' Do work here. End Sub




Reply With Quote