Displaying a Help File

In addition to providing standard common dialog boxes, the CommonDialog control enables you to display a Help file. To display a Help file, you can use the HelpFile, HelpContext, and HelpCommand properties to set a file name and context. After you set the properties, use the ShowHelp method to open the file. If you do not specify a valid file name and context, the main Windows CE Help file is used by default.

The following code example shows how to display a Help file.

Public Function DisplayHelp()
    'Set the Help file and context
    CommonDialog1.HelpFile = "calc.htp"
    CommonDialog1.HelpContext = "use_the_paper_tape"
    'Set the control to use the context
    CommonDialog1.HelpCommand = cdlHelpContext
    'Show the Help
    CommonDialog1.ShowHelp
End Function