ieexplorer process.start() error status

  • Thread starter Thread starter jrbareta
  • Start date Start date
J

jrbareta

I am using VS2003 and my windows program may try to goto a URL site. I do
this by starting a browser process thread p.start(). If the web page
cannot be found or a connection to the internet is not present, the browser
shows an error message in its display. I have not been able to figure out
how to get the brower's error code, so the calling windows program can do
additional processing.
Can this be done? I am really open to suggestions on how to do this.
 
jrbareta said:
I am using VS2003 and my windows program may try to goto a URL site. I do
this by starting a browser process thread p.start(). If the web page
cannot be found or a connection to the internet is not present, the browser
shows an error message in its display. I have not been able to figure out
how to get the brower's error code, so the calling windows program can do
additional processing.
Can this be done? I am really open to suggestions on how to do this.

How do you open the browser? Do you just call Process.Start("url")? I
would personally include the mshtml COM object and use interop to use
the InternetExplorer COM object. This starts a stand-alone browser for
you, of which you have complete control. You can subscribe to all kinds
of events such as the NavigateError event.
The only thing against it is that it may require a bit more effort than
using a standard .NET class. Have a look at
http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/internetexplorer.asp
for more info.

Jeroen-bart Engelen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top