AccessViolation Error with backgroundworker/webbrowser controls for a file download (1 Viewer)

bjsteyn

Registered User.
Local time
Today, 22:42
Joined
May 15, 2008
Messages
113
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 :confused:
 

Users who are viewing this thread

Top Bottom