Opening Web page from application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Norm

    #1

    Opening Web page from application

    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("I nternetExplorer .Application") and then use Browser.Navigat e,
    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




  • Thorsten Doerfler

    #2
    Re: Opening Web page from application

    Norm schrieb:[color=blue]
    > 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.[/color]

    Process.Start(" http://www.vb-hellfire.de/")
    [color=blue]
    > In vb6 you could use Set Browser =
    > CreateObject("I nternetExplorer .Application") and then use Browser.Navigat e,[/color]

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

    Comment

    • Norm

      #3
      Re: Opening Web page from application


      "Thorsten Doerfler" <t.doerfler_nos pam@bdsw.de> wrote in message
      news:dgag36.t8. 1@news.bdsw.de. ..[color=blue]
      > Norm schrieb:[color=green]
      > > I have looked all over and maybe just missed how to do this, but I just[/color][/color]
      want[color=blue][color=green]
      > > 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.[/color]
      >
      > Process.Start(" http://www.vb-hellfire.de/")
      >[color=green]
      > > In vb6 you could use Set Browser =
      > > CreateObject("I nternetExplorer .Application") and then use[/color][/color]
      Browser.Navigat e,[color=blue]
      >
      > 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
      > --
      > http://www.vb-hellfire.de/[/color]

      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


      Comment

      • Cor Ligthert [MVP]

        #4
        Re: Opening Web page from application

        Norm,

        As addition to Thorsten

        I know nothing about it than that I have seen it adviced by persons in one
        of the dotnet newsgroups.



        I hope this helps,

        Cor


        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: Opening Web page from application

          "Norm" <NormF4@newsgro ups.nospam> schrieb:[color=blue]
          > but I just want to [...] open the browser and display a page[/color]

          Opening files, applications, Web documents, and the mail client
          <URL:http://dotnet.mvps.org/dotnet/faqs/?id=openfileapp webpage&lang=en >

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://classicvb.org/petition/>

          Comment

          Working...