代码怎么写?网页放在哪里呢?先谢谢了!

解决方案 »

  1.   

    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecute A" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As LongShellExecute 0, "open", "http://abc,com", vbNullString, vbNullString, 3
      

  2.   

    using System.IO;
    private void button3_Click(object sender, System.EventArgs e)
    {
    string path = Directory.GetCurrentDirectory();
    Help.ShowHelp(this.textBox1,path+@"\help.htm");
    }
    //如果急呢,可以用用这个,path是文件的路径!
    //这个办法不是太准确,但却能实现你所要的功能,呵呵
    记得加个文本框哦,呵呵!
      

  3.   

    System.Diagnostics.Process.Start("www.sohu.com");
      

  4.   

    呵呵,Process.Start比ShellExecute简单。