Share via


C# WPF: Open a CHM Help File to a specific page

Question

Friday, May 6, 2016 7:02 PM

On my WPF dialog/form I have a help icon that recognizes a Mouse Down event and allows the user to view help files in a CHM format.

I cannot get it to go directly to the desired page, instead it opens to the default.

I have tried the following:

Example1 (this works as expected):

System.Windows.Forms.Help.ShowHelp(null, @"..\CN.Help\CN_Help_EN.chm");

 

Example 2 (does not behave any different than example 1)

System.Windows.Forms.Help.ShowHelp(null, @"..\CN.Help\CN_Help_EN.chm", "HorizontalBatch.htm");

 

Example 3 (reference by keyword? Same as example 1&2)

System.Windows.Forms.Help.ShowHelp(null, @"..\CN.Help\CN_Help_EN.chm", "Horizontal Batch Mix Report");

Any suggestions as to where to go from here?

Tom Mann MCSD C#

All replies (2)

Friday, May 6, 2016 7:46 PM âś…Answered

GOT IT!!!

It needed a qualified path "html\

System.Windows.Forms.Help.ShowHelp(null, @"..\CN.Help\CN_Help_EN.chm", **@"html\**HorizontalBatch.htm");

Tom Mann MCSD C#


Monday, May 9, 2016 7:27 AM

Hi T_Mann,

Thank you for postting your solution. Anyone who encountered similar problems will get help from it. Please mark your reply as answer.

Thanks,
Li Wang

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.