代码之家  ›  专栏  ›  技术社区  ›  spig

如何从.NET客户端应用程序加载URL

  •  2
  • spig  · 技术社区  · 16 年前

    使用C和.NET框架从Windows上的厚客户端应用程序打开URL的首选方法是什么?我希望它使用默认浏览器。

    4 回复  |  直到 16 年前
        1
  •  8
  •   Dario Solera    16 年前

    Process.Start("http://www.yoururl.com/Blah.aspx");
    

        2
  •  4
  •   Matthias Meid    16 年前

    Process.Start method

    Process.Start("http://www.google.com/");
    
        3
  •  1
  •   Martin    16 年前
    private void launchURL_Click(object sender, System.EventArgs e){
     string targetURL = "http://stackoverflow.com";
     System.Diagnostics.Process.Start(targetURL);
    }
    
        4
  •  0
  •   Bullines    16 年前
    System.Diagnostics.Process.Start("http://www.stackoverflow.com");