Specifying a relative path

前端 未结 4 921
孤城傲影
孤城傲影 2021-01-13 07:20

I have a windows forms project. In the current directory I have a Help folder with *.chm files. What is the easiest way to launch them from the application? How can I specif

4条回答
  •  忘掉有多难
    2021-01-13 07:37

    You should use Help.ShowHelp to do this

    var chmFile = "CHM/test.chm";
    Help.ShowHelp(ctrl, chmFile);
    

    by default ShowHelp will search file in the application path

提交回复
热议问题