i've got a timer that i'm trying to start on a different thread with a backgroundworker. it doesn't work. what am i doing wrong? i tried to invoke the timer but .invoke isn't a member of timer
Printable View
i've got a timer that i'm trying to start on a different thread with a backgroundworker. it doesn't work. what am i doing wrong? i tried to invoke the timer but .invoke isn't a member of timer
Invoke is a member of the Control class. A Timer is not a control. A form is a control.vb.net Code:
Private Sub BackgroundWorker1_DoWork(ByVal sender As Object, _ ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork Me.Invoke(New MethodInvoker(AddressOf Me.Timer1.Start)) End Sub