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. how to call browser from desktop application?

how to call browser from desktop application?

Scheduled Pinned Locked Moved C#
csharpcomjsontutorialquestion
6 Posts 3 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.
  • F Offline
    F Offline
    fahiemulleh
    wrote on last edited by
    #1

    Hi all. I am developing my desktop application in C# 2005. I have a File menu. In its submenu , i have OBTAIN API. I want when i click on it, it redirects me to the desired site like www.google.com. Please tell me how to call a specific website from the desktop application? Thanks a lot for your consideration.

    C N 2 Replies Last reply
    0
    • F fahiemulleh

      Hi all. I am developing my desktop application in C# 2005. I have a File menu. In its submenu , i have OBTAIN API. I want when i click on it, it redirects me to the desired site like www.google.com. Please tell me how to call a specific website from the desktop application? Thanks a lot for your consideration.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If you pass a URL to Process.Start, it will open the site in your default browser.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      F 1 Reply Last reply
      0
      • C Christian Graus

        If you pass a URL to Process.Start, it will open the site in your default browser.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        F Offline
        F Offline
        fahiemulleh
        wrote on last edited by
        #3

        I have tried this: private void tsmi_obtainAPI_Click(object sender, EventArgs e) { Process.Start("www.google.com"); } it returns the following error: The name "Process" doesn't exist in the current context. Would you please help me out in this? Thanks

        C 1 Reply Last reply
        0
        • F fahiemulleh

          I have tried this: private void tsmi_obtainAPI_Click(object sender, EventArgs e) { Process.Start("www.google.com"); } it returns the following error: The name "Process" doesn't exist in the current context. Would you please help me out in this? Thanks

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          System.Diagnostics.Process.Start, apparently.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          F 1 Reply Last reply
          0
          • C Christian Graus

            System.Diagnostics.Process.Start, apparently.

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

            F Offline
            F Offline
            fahiemulleh
            wrote on last edited by
            #5

            Thanks a lot Graus, it works now. I am really thankful to you

            1 Reply Last reply
            0
            • F fahiemulleh

              Hi all. I am developing my desktop application in C# 2005. I have a File menu. In its submenu , i have OBTAIN API. I want when i click on it, it redirects me to the desired site like www.google.com. Please tell me how to call a specific website from the desktop application? Thanks a lot for your consideration.

              N Offline
              N Offline
              Niiiissssshhhhhuuuuu
              wrote on last edited by
              #6

              Hi, process1.StartInfo.FileName="iexplore"; process1.StartInfo.Arguments="NishuSoft.com"; process1.Start(); :cool::cool: nishu

              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