using process.start to open a web page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?YmlsbA==?=

    #1

    using process.start to open a web page

    i'm using VS2005, VB.NET windows forms application
    when I try to open a web page using process.start, i get an error:
    "applicatio n not found"

    I'm using this syntax:

    System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")

    It works if I do it like this (thank you HKW), but what if the user doesn't
    use IE, but uses some other browser?

    Dim psi As New ProcessStartInf o()
    With psi
    .FileName = "iexplore"
    .Arguments = "-new http://dotnet.mvps.org/"
    End With
    Process.Start(p si)


    Thanks
    Bill
    --
    bill
  • kimiraikkonen

    #2
    Re: using process.start to open a web page

    On Jul 5, 10:07 pm, bill <bel...@hotmail .comwrote:
    i'm using VS2005, VB.NET windows forms application
    when I try to open a web page using process.start, i get an error:
    "applicatio n not found"
    >
    I'm using this syntax:
    >
    System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")
    >
    It works if I do it like this (thank you HKW), but what if the user doesn't
    use IE, but uses some other browser?
    >
    Dim psi As New ProcessStartInf o()
    With psi
    .FileName = "iexplore"
    .Arguments = "-newhttp://dotnet.mvps.org/"
    End With
    Process.Start(p si)
    >
    Thanks
    Bill
    --
    bill
    For instance, I changed default browser to Firefox from IE and the
    syntax

    System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")

    worked well.(It was opened in IE when IE was default, it was opened in
    Firefox when Firefox was default).

    What's the exact problem?

    or do you want your users to open link in Firefox explictly:
    System.Diagnost ics.Process.Sta rt( _
    "C:\Program Files\Mozilla Firefox\firefox .exe", _
    "http://www.microsoft.c om")

    Hope this helps,

    Onur Güzel

    Comment

    • =?Utf-8?B?YmlsbA==?=

      #3
      Re: using process.start to open a web page

      Kimi -

      I saw that Heikki and Mark stole the front row from you today at Silverstone
      - good luck tomorrow, though.

      when I use
      System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")

      I get an error:

      "applicatio n not found"



      --
      bill


      "kimiraikko nen" wrote:
      On Jul 5, 10:07 pm, bill <bel...@hotmail .comwrote:
      i'm using VS2005, VB.NET windows forms application
      when I try to open a web page using process.start, i get an error:
      "applicatio n not found"

      I'm using this syntax:

      System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")

      It works if I do it like this (thank you HKW), but what if the user doesn't
      use IE, but uses some other browser?

      Dim psi As New ProcessStartInf o()
      With psi
      .FileName = "iexplore"
      .Arguments = "-newhttp://dotnet.mvps.org/"
      End With
      Process.Start(p si)

      Thanks
      Bill
      --
      bill
      >
      For instance, I changed default browser to Firefox from IE and the
      syntax
      >
      System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")
      >
      worked well.(It was opened in IE when IE was default, it was opened in
      Firefox when Firefox was default).
      >
      What's the exact problem?
      >
      or do you want your users to open link in Firefox explictly:
      System.Diagnost ics.Process.Sta rt( _
      "C:\Program Files\Mozilla Firefox\firefox .exe", _
      "http://www.microsoft.c om")
      >
      Hope this helps,
      >
      Onur Güzel
      >

      Comment

      • kimiraikkonen

        #4
        Re: using process.start to open a web page

        On Jul 5, 11:58 pm, bill <bel...@hotmail .comwrote:
        Kimi -
        >
        I saw that Heikki and Mark stole the front row from you today at Silverstone
        - good luck tomorrow, though.
        >
        when I use
        System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")
        >
        I get an error:
        >
        "applicatio n not found"
        >
        --
        bill
        >
        "kimiraikko nen" wrote:
        On Jul 5, 10:07 pm, bill <bel...@hotmail .comwrote:
        i'm using VS2005, VB.NET windows forms application
        when I try to open a web page using process.start, i get an error:
        "applicatio n not found"
        >
        I'm using this syntax:
        >
        System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")
        >
        It works if I do it like this (thank you HKW), but what if the user doesn't
        use IE, but uses some other browser?
        >
        Dim psi As New ProcessStartInf o()
        With psi
        .FileName = "iexplore"
        .Arguments = "-newhttp://dotnet.mvps.org/"
        End With
        Process.Start(p si)
        >
        Thanks
        Bill
        --
        bill
        >
        For instance, I changed default browser to Firefox from IE and the
        syntax
        >
        System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")
        >
        worked well.(It was opened in IE when IE was default, it was opened in
        Firefox when Firefox was default).
        >
        What's the exact problem?
        >
        or do you want your users to open link in Firefox explictly:
        System.Diagnost ics.Process.Sta rt( _
        "C:\Program Files\Mozilla Firefox\firefox .exe", _
        "http://www.microsoft.c om")
        >
        Hope this helps,
        >
        Onur Güzel
        Bill,
        Though it's just my nickname, thanks for your goodwill :)

        However, i can't reproduce the problem you mentioned on XP, anyway
        would you also try this:

        Shell("explorer .exe http://www.microsoft.c om", _
        AppWinStyle.Nor malFocus)

        Hope this helps,

        Onur Güzel

        Comment

        • =?Utf-8?B?YmlsbA==?=

          #5
          Re: using process.start to open a web page

          I'm using Vista (should have mentioned that); maybe that's the problem
          Thanks

          --
          bill


          "kimiraikko nen" wrote:
          On Jul 5, 11:58 pm, bill <bel...@hotmail .comwrote:
          Kimi -

          I saw that Heikki and Mark stole the front row from you today at Silverstone
          - good luck tomorrow, though.

          when I use
          System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")

          I get an error:

          "applicatio n not found"

          --
          bill

          "kimiraikko nen" wrote:
          On Jul 5, 10:07 pm, bill <bel...@hotmail .comwrote:
          i'm using VS2005, VB.NET windows forms application
          when I try to open a web page using process.start, i get an error:
          "applicatio n not found"
          I'm using this syntax:
          System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")
          It works if I do it like this (thank you HKW), but what if the user doesn't
          use IE, but uses some other browser?
          Dim psi As New ProcessStartInf o()
          With psi
          .FileName = "iexplore"
          .Arguments = "-newhttp://dotnet.mvps.org/"
          End With
          Process.Start(p si)
          Thanks
          Bill
          --
          bill
          For instance, I changed default browser to Firefox from IE and the
          syntax
          System.Diagnost ics.Process.Sta rt("http://www.microsoft.c om/")
          worked well.(It was opened in IE when IE was default, it was opened in
          Firefox when Firefox was default).
          What's the exact problem?
          or do you want your users to open link in Firefox explictly:
          System.Diagnost ics.Process.Sta rt( _
          "C:\Program Files\Mozilla Firefox\firefox .exe", _
          "http://www.microsoft.c om")
          Hope this helps,
          Onur Güzel
          >
          Bill,
          Though it's just my nickname, thanks for your goodwill :)
          >
          However, i can't reproduce the problem you mentioned on XP, anyway
          would you also try this:
          >
          Shell("explorer .exe http://www.microsoft.c om", _
          AppWinStyle.Nor malFocus)
          >
          Hope this helps,
          >
          Onur Güzel
          >

          Comment

          Working...