Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Opening web page in a new tab

Opening web page in a new tab

Scheduled Pinned Locked Moved C#
comquestion
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mertli Ozgur Nevres
    wrote on last edited by
    #1

    Hi all I am using the code below to open an internet explorer window: System.Diagnostics.Process.Start( "iexplore.exe", "http://www.codeproject.com" ); It works well, but in ie7, it opens a new window every time. But i want to open a new tab instead of a new window. Is there any way to do this? Thanks

    ozgur.nevres

    A E E L 4 Replies Last reply
    0
    • M Mertli Ozgur Nevres

      Hi all I am using the code below to open an internet explorer window: System.Diagnostics.Process.Start( "iexplore.exe", "http://www.codeproject.com" ); It works well, but in ie7, it opens a new window every time. But i want to open a new tab instead of a new window. Is there any way to do this? Thanks

      ozgur.nevres

      A Offline
      A Offline
      Anthony Mushrow
      wrote on last edited by
      #2

      Stupid IE7, i don't like it. Well, that doesn't work because it starts a whole new process, you want to tell the existing process to open up a new tab... i have no idea how to do that :doh: But i shall investigate... AWAY!

      1 Reply Last reply
      0
      • M Mertli Ozgur Nevres

        Hi all I am using the code below to open an internet explorer window: System.Diagnostics.Process.Start( "iexplore.exe", "http://www.codeproject.com" ); It works well, but in ie7, it opens a new window every time. But i want to open a new tab instead of a new window. Is there any way to do this? Thanks

        ozgur.nevres

        E Offline
        E Offline
        Eduard Keilholz
        wrote on last edited by
        #3

        Have you tried starting http://www.codeproject.com as a process in stead of iexplore?? System.Diagnostics.Process.Start("http://www.codeproject.com"); I haven't got IE7 installed so cannot test, i'm sorry, but maybe it's the trick ;-)

        - - - --[ i love it when a plan comes together ]-- - - -

        M 1 Reply Last reply
        0
        • E Eduard Keilholz

          Have you tried starting http://www.codeproject.com as a process in stead of iexplore?? System.Diagnostics.Process.Start("http://www.codeproject.com"); I haven't got IE7 installed so cannot test, i'm sorry, but maybe it's the trick ;-)

          - - - --[ i love it when a plan comes together ]-- - - -

          M Offline
          M Offline
          Mertli Ozgur Nevres
          wrote on last edited by
          #4

          GREAT! It worked. Many thanks! :beer: And it is better than first one, cz it is using the default browser, not ie only. I changed my default browser to opera, and it opened a new tab in opera. :cool:

          ozgur.nevres

          1 Reply Last reply
          0
          • M Mertli Ozgur Nevres

            Hi all I am using the code below to open an internet explorer window: System.Diagnostics.Process.Start( "iexplore.exe", "http://www.codeproject.com" ); It works well, but in ie7, it opens a new window every time. But i want to open a new tab instead of a new window. Is there any way to do this? Thanks

            ozgur.nevres

            E Offline
            E Offline
            ednrgc
            wrote on last edited by
            #5

            Your problem is that you are starting a new iexplore process each time.

            1 Reply Last reply
            0
            • M Mertli Ozgur Nevres

              Hi all I am using the code below to open an internet explorer window: System.Diagnostics.Process.Start( "iexplore.exe", "http://www.codeproject.com" ); It works well, but in ie7, it opens a new window every time. But i want to open a new tab instead of a new window. Is there any way to do this? Thanks

              ozgur.nevres

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Mertli Ozgur Nevres wrote:

              System.Diagnostics.Process.Start( "iexplore.exe",

              As a Firefox user I tell you: Don't - do - this - EVER! :sigh: Starting the link directly is okay on windows, windows will take care of it itself.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups