Opening Web page from application

  • Thread starter Thread starter Norm
  • Start date Start date
N

Norm

I have looked all over and maybe just missed how to do this, but I just want
to check that an internet connection is available and if it is open the
browser and display a page that I direct the user to.

In vb6 you could use Set Browser =
CreateObject("InternetExplorer.Application") and then use Browser.Navigate,
but I can't seem to find anything like this in vb.net. I do see the
WebClient, but that just seems to return a string rather than opening a
page.

Any suggestions or pointers would should be appreciated.

Thanks,
Norm
 
Norm said:
I have looked all over and maybe just missed how to do this, but I just want
to check that an internet connection is available and if it is open the
browser and display a page that I direct the user to.
Process.Start("http://www.vb-hellfire.de/")

In vb6 you could use Set Browser =
CreateObject("InternetExplorer.Application") and then use Browser.Navigate,

You can do this with VB.NET too, but it's not recommend to depend on
IE, instead of using the user's default browser.

Thorsten Doerfler
 
Thorsten Doerfler said:
Browser.Navigate,

You can do this with VB.NET too, but it's not recommend to depend on
IE, instead of using the user's default browser.

Thorsten Doerfler

Thorsten,

Thanks very much for the reply, that is certainly easier than what I was
trying to do and I don't even need to check for an internet connection first
as the browser will return an error stating that it cannot find the site if
there is no connection to the internet.

Thanks again,
Norm
 

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