Click here to Skip to main content
15,902,893 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I am wanting to add help to my application. I used htm files, and converted then to a .chm file. I have added the .chm file to my application by using the Addi Existing Item option.

So it's in my project, but how do I now access the .chm help in the application? Like when I click help, I want that to open?
Posted

If you only need to open the .chm file from code, try this:

C#
System.Diagnostics.Process.Start("...the .chm file path goes here...");
 
Share this answer
 
Hi,

normally you don't add the *.chm to your project. The most common way is to install the *.chm into the same folder as your *.exe.
You can then open the help file using the .Net Framework class "System.Windows.Forms.Help":

System.Windows.Forms.Help.ShowHelp(this, "MyHelp.chm");
 
Share this answer
 
Hello dear,
Its simple
just add a help provider
and give the .chm file path.

eg.
<small>[no vb in tags]</small>
[C#]
helpProvider1.HelpNamespace = &quot;C:/Program Files/H2Reg/h1help/h2reg.chm&quot;;
helpProvider1.SetHelpNavigator(button1, HelpNavigator.Topic);
helpProvider1.SetHelpKeyword(button1, &quot;html/dynamichelp2.htm&quot;);

<strike>IS IT OK???</strike>
<small>[No shouting]</small>
 
Share this answer
 
v2
Comments
Johnny J. 11-Oct-10 7:32am    
Don't call people you don't know "dear" - and even if you know "ja9", don't call him/her "dear" in a public forum. Keep your private life to yourselves...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900