locked
Context sensitive Help using F1 key and compiled *.chm files RRS feed

  • Question

  • I have tried to get the F1 help key to access a From and a control on the form using the Windows HTML Help Workshop.  I got the HTML file compiled and tried to get the Form property Help file and the HelpContextID set up to a test form but I can't get aCCESS TO SHOW THE hELP FROM THE COMPILED html.  tHE alias FILE IS AS FOLLOWS:

    1=test1.htm;

    2=test2.htm;
    The Map file is:
    #define 1 1001
    #define 2 2001
     My HHP file is :
    [OPTIONS]
    Compatibility=1.1 or later
    Compiled file=MyProject.chm
    Display compile progress=No
    Language=0x409 English (United States)
    [FILES]
    test1.htm
    test2.htm
    [ALIAS]
    #include Alias.h
    [MAP]
    #include map.h
    [INFOTYPES]
    The HM files test1.htm:
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
    <HTML>
    <HEAD>
    <meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
    <Title>Control Help</Title>
    </HEAD>
    <BODY>
    This is the Help topic for the control on the form. Test2.htm
    </BODY>
    </HTML>
    and <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
    <HTML>
    <HEAD>
    <meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
    <Title>Form Help</Title>
    </HEAD>
    <BODY>
    This is where the Help Info goes
    </BODY>
    </HTML>
    When I set the test form's Help file to point to the compiled CHM file and set the HelpContextID = 1001 and set the Controls HelpContextID = 2001
    When I select the form and press F1 key I get Access help and  when I select the control(textbox) I get Access Help my HTML help never shows up.
    Any Help would be appreciated.
    Wednesday, July 20, 2011 7:02 PM

Answers