Any Easy way to open help files by "F1"?

There is an "Help" on the MenuStrip, and its short key is "F1". I made a user guide of the software in word format. How to open the "user guide" when user click either "Help" or "F1"
To use file open and close or some other easy way

BTW. Is there any detailed and all-sided information about the items on GUI

Thanks a lot!




Answer this question

Any Easy way to open help files by "F1"?

  • pauloschultz

    Oh, thanks a lot!

    It works now...

    Only Path.GetDirectory should be Path.GetDirectoryName...

    with Using System.IO at the beginning..



  • Kevin8264

    Thanks!

    However, I do think I get the answer...

    At this stage, I want to know what will be the "Path" of the "User Guide.doc" which is added to Setup Project for the Porcess.Start()...

    I do not know how to make it easily to open the "User Guide.doc" when user press "F1" or "Help" after installing my software.

    Since I do not know where user will install the software, I do not know the path for the "User Guide.doc". Is there any way to get the path of the file after user install the software

    Did I misunderstand your meaning

    Would you please explain more

    Thanks a lot!



  • Staun

    Process.Start("WINWORD.EXE", "E:\\Pockey\\myfiles\\SerialCommunication User Guide.doc");

    It seems the program can not find the specified file. I am sure the file and not written-protected...

    Does that mean Process.Start can only open files inside its path

    What is the path if I add file to the Setup Project So that after user install and run the program, he can get "user guide" by press "F1" or "Help"

    Thanks a lot!



  • dreameR.78

    So that means I add the user guide.doc to the setup files, and then use the Process.Start with the specified path Well, I'll have a try~~~~

    Is there any free tool to convert Word to PDF or CHM format

    Thanks..



  • vipulparmar

    OK, that's not what I said to do. Yes, Process.Start will NOT search your entire hard drive for a file.

    Process.Start("E:\\Pockey\\myfiles\\SerialCommunication User Guide.doc");

    Will search the registry to find the program to open a .doc file with, and will find Word there.



  • JayDiscount

    Process.Start will open word with your document, if you pass it the document path as a parameter.

  • Cika

    Ah - that's a different question

    Path.Combine(Path.GetDirectory(Application.ExecutablePath), "User Guide.doc);



  • Any Easy way to open help files by "F1"?