Calling all Visual Basic .Net Pros...

Specialk92282

Member
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.
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
Can you explain your goal of the project? Sorry, I don't know how to fix the WebBrowser problem but there may be a much better alternative.
 

Specialk92282

Member
Nov 15, 2004
143
0
0
Thanks for the reply...

I'm trying to pull information off of Paypal and store it into a database. I know they have an API, but it involves ASP .net and hasseling with credentials and such.

Ultimately I am trying to automate the shipping process so that I can print off a couple hundred shipping labels with Endicia then have my program post the Delivery Confirmation numbers to the Paypal site. This allows customers to go in and track their packages and it provides proof of shipment in case anything happens.

I know endicia has a feature that can be used to send a confirmation email as I have used it in the past, but I would rather use this method as it is more intuitive for customers.

I am nearly done with my program the only problem is that the webbrowser object stalls out when focus is taken off its containing form.