用C#写了一个系统里
现在得加一个帮助文档
可是这个帮助文档做成了用网页的形式
在系统的主窗体中有一个帮助按钮
想点击这个帮助按钮的时候打开帮助文件
请问这个方法怎么写呢

解决方案 »

  1.   

    private void button1_Click(object sender, EventArgs e)
            {
                System.Diagnostics.Process.Start("http://www.csdn.net/");
            }
      

  2.   

    我想调用的是我项目中HelpDoc里的(index.html)网页请问这个怎么写呢
      

  3.   

    HelpDoc是文件夹吗,如果是那就是
    private void button1_Click(object sender, EventArgs e)
            {
                System.Diagnostics.Process.Start("IExplore.exe","c:\\HelpDoc\\index.html");
            }
      

  4.   

    这是相对路径的
            private void button1_Click(object sender, EventArgs e)
            {
                String strFilePath = Application.StartupPath + @"\HelpDoc\index.html";
                System.Diagnostics.Process.Start("IExplore.exe", strFilePath);
            }
      

  5.   

    "c:\\HelpDoc\\index.html";
    这个路径只能是绝对路径吗?
    可不可以是相对路径呢?
    如果这个是绝对路径的话
    那么项目在打包之后
    用户自己选择性安装
    那样的话
    会出现问题的呢
    如果是相对路径那应该不会出现找不着的情况发生
      

  6.   

    为什么不编译成chm(帮助)文件呢HelpProvider 同样也支持 Html 源文件, 参考MSDN 标准的HELP制作
    "c:\\HelpDoc\\index.html";
    这个路径只能是绝对路径吗?
    --------------------------
    路径问题可以这样解决 Application.StartupPath + "\\index.html";
      

  7.   

    System.Diagnostics.Process.Start("IExplore.exe",@"http://www.163.com");