I have a webbrowser , timer and bacgroundworker for logging into a website and downloading required data.
I receive AccessViolationException error as soon the code sendkey to save the download file.
Private Sub WorkIt_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles WorkIt.DoWork
Threading.Thread.Sleep(5000)
SendKeys.SendWait("{LEFT}")
Threading.Thread.Sleep(2000)
SendKeys.SendWait("{ENTER}") -->> After key is sent i receive the error
Plz Help
I receive AccessViolationException error as soon the code sendkey to save the download file.
Private Sub WorkIt_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles WorkIt.DoWork
Threading.Thread.Sleep(5000)
SendKeys.SendWait("{LEFT}")
Threading.Thread.Sleep(2000)
SendKeys.SendWait("{ENTER}") -->> After key is sent i receive the error
Plz Help