Question

I want to add help.chm or help.pdf in application.

Where to add these files and how to call them during button click or on F1 key pressed?

i have also used following code for F1 key press but i am not able to call the help file any how

<Window.CommandBindings>
    <CommandBinding Command='ApplicationCommands.Help' Executed='Window_Help_Executed'></CommandBinding>
</Window.CommandBindings>

Please Provide me any Solution.

Thanks

Was it helpful?

Solution

You can open your help file with the Process class... view the Process Class page at MSDN for more information:

Process.Start("help.chm");

For this to work, you will need to place the 'help.chm' file in the 'bin' folder where your executable is. You could put this file elsewhere as long as you use the correct relative path from your application executable file to it. You will also need to add the following:

using System.Diagnostics;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top