I want to open a specific subpage of my CHM-Help for my program.
I never did this in c#, so I need to know how to open the specific Page of the CHM.
A short example would be perfect.

有帮助吗?

解决方案

You can use System.Windows.Forms.Help.ShowHelp(Control, String, HelpNavigator)

From MSDN

// Open the Help file for the Character Map topic and 
// display the Index page.
private void Button2_Click(System.Object sender, System.EventArgs e)
{

    Help.ShowHelp(TextBox1, "file://c:\\charmap.chm", 
        HelpNavigator.Index);
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top