- Nov 15, 2004
- 143
- 0
- 0
I am working on a pretty basic screen scraping program that makes use of the WebBrowser control to navigate and fill out web forms.
The program basically works like this:
A page is loaded using the Navigate2 method and the DocumentComplete event checks the page and determines the appropriate course of action. For some reason if I set the visible property of the WebBrowser object to false or if I take the focus off of the browser window the browser just stops and the DocumentComplete method isn't called.
I had considered using HttpWebRequest instead of WebBrowser, but there is a browser redirect at the destination site and I would have to store cookies somehow. Instead of trying to tackle a lot of new material I figured it would be best to just get things rolling with WebBrowser and change things up later as needed.
Any help or suggestions are appreciated as I cannot find anything about this on msdn or google.
The program basically works like this:
A page is loaded using the Navigate2 method and the DocumentComplete event checks the page and determines the appropriate course of action. For some reason if I set the visible property of the WebBrowser object to false or if I take the focus off of the browser window the browser just stops and the DocumentComplete method isn't called.
I had considered using HttpWebRequest instead of WebBrowser, but there is a browser redirect at the destination site and I would have to store cookies somehow. Instead of trying to tackle a lot of new material I figured it would be best to just get things rolling with WebBrowser and change things up later as needed.
Any help or suggestions are appreciated as I cannot find anything about this on msdn or google.