Skip to content

How to link a chm file to an application?

Krishna Kishore

Asked Feb 19, 2006, 7:38 PM EST4 answers
Share
LinkedInX
Hi All

How to link a chm file to an application?

Like say i have 2 forms in my application and if i press f1 in form1 respective help of Form1 should only come...Similarly for form2....

Plz help in solving my problem

Thank You.

4 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Anwar Buchoo
    0
    Use something like:

    // In class FormA
    Process.Start("FormAHelp.chm");

    // In class FormB
    Process.Start("FormBHelp.chm");

    if your help files are different.
    0
  • 0
    Thanks for the reply....But Iam maintaining a single chm file...

    Appropriately the link should go to that help .....
    How to do that?
    0
  • Anwar Buchoo
    0
    Hi Kishore.

    Use the API function call ShellExecute(), e.g.:

    ShellExecute(hwnd, "open", "$ChmDir\MyHelp.chm", "", "", SW_SHOWNORMAL);

    For more information, see MSDN Support


    Rgds.
    0
  • 0
    Anwarji,
    Thank you very much, iwill try that and let u know the status,

    bye,
    Kishore.
    0