Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
Public Class TestClass Public TestVariable As String Private WithEvents Tmr As System.Windows.Forms.Timer Private WithEvents Bw As System.ComponentModel.BackgroundWorker Public Sub New() Tmr = New System.Windows.Forms.Timer Bw = New System.ComponentModel.BackgroundWorker Tmr.Interval = 5000 Tmr.Enabled = True End Sub Private Sub Tmr_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Tmr.Tick If Bw.IsBusy = False Then Bw.RunWorkerAsync() End Sub Private Sub Bw_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles Bw.DoWork If thiscondition = True Then Tmr.Enabled = False End If End Sub End Class
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.