Integrating with CHM File

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • O.B.

    #1

    Integrating with CHM File

    I have added a HelpProvider to my GUI. And I have been able to
    successfully load the file using the following code:

    protected override bool ProcessDialogKe y(Keys keyData)
    {
    bool rv = false;
    if (keyData == Keys.F1)
    {
    Help.ShowHelp(
    this,
    helpProvider.He lpNamespace);
    rv = true;
    }
    return rv;
    }

    However, I'd like for the Help to open to specific topic. I am using
    a program called Word-2-CHM (by MacroObject) to convert Word files to
    CHM files. And it does a great job. It provides me with a .cs file
    that contains a bunch of enums for each of the .htm files within the
    CHM file. So for example, one enum is "HID_Playbo x = 1041" where the
    associated help file is "1041.htm" within the CHM file. How does the
    Help.ShowHelp() operation support the ability to show this specific
    location?

  • O.B.

    #2
    Re: Integrating with CHM File

    Oh never mind ... figured it out by trial and error:

    protected override bool ProcessDialogKe y(Keys keyData)
    {
    bool rv = false;
    if (keyData == Keys.F1)
    {
    Help.ShowHelp(t his,
    helpProvider.He lpNamespace,
    HelpNavigator.T opic,
    (int)HelpIdDefi nes.HID_Playbox + ".htm");
    rv = true;
    }
    return rv;
    }


    On Nov 26, 2:56 pm, "O.B." <funkj...@bells outh.netwrote:
    I have added a HelpProvider to my GUI. And I have been able to
    successfully load the file using the following code:
    >
    protected override bool ProcessDialogKe y(Keys keyData)
    {
    bool rv = false;
    if (keyData == Keys.F1)
    {
    Help.ShowHelp(
    this,
    helpProvider.He lpNamespace);
    rv = true;
    }
    return rv;
    >
    }
    >
    However, I'd like for the Help to open to specific topic. I am using
    a program called Word-2-CHM (by MacroObject) to convert Word files to
    CHM files. And it does a great job. It provides me with a .cs file
    that contains a bunch of enums for each of the .htm files within the
    CHM file. So for example, one enum is "HID_Playbo x = 1041" where the
    associated help file is "1041.htm" within the CHM file. How does the
    Help.ShowHelp() operation support the ability to show this specific
    location?

    Comment

    • Rinaldo

      #3
      Re: Integrating with CHM File

      Hi funkjunk

      It can be simple by the HelpRequested event

      private void Radiospeler_Hel pRequested(obje ct sender, HelpEventArgs
      hlpevent)
      {
      Help.ShowHelp(t his, "Radio speler.chm");
      }

      rinaldo

      "O.B." <funkjunk@bells outh.netschreef in bericht
      news:87270034-1f2f-4b95-832f-8f5c7e458e61@w3 4g2000hsg.googl egroups.com...
      >I have added a HelpProvider to my GUI. And I have been able to
      successfully load the file using the following code:
      >
      protected override bool ProcessDialogKe y(Keys keyData)
      {
      bool rv = false;
      if (keyData == Keys.F1)
      {
      Help.ShowHelp(
      this,
      helpProvider.He lpNamespace);
      rv = true;
      }
      return rv;
      }
      >
      However, I'd like for the Help to open to specific topic. I am using
      a program called Word-2-CHM (by MacroObject) to convert Word files to
      CHM files. And it does a great job. It provides me with a .cs file
      that contains a bunch of enums for each of the .htm files within the
      CHM file. So for example, one enum is "HID_Playbo x = 1041" where the
      associated help file is "1041.htm" within the CHM file. How does the
      Help.ShowHelp() operation support the ability to show this specific
      location?
      >
      >

      Comment

      Working...