Returns or sets the type of online Help requested.
Object.HelpCommand [ = enHelpCommand ]
The HelpCommand property syntax has the following parts:
Name |
Type |
Description |
Object |
ACommonDialog |
ACommonDialog object |
enHelpCommand |
enumACommonDialogHelpCommand |
An integer specifying the type of online Help requested. |
enumACommonDialogHelpCommand can be one of the following:
Name |
Value |
Description |
acdlgHelpCommandContents |
0 |
Help Contents |
acdlgHelpCommandContext |
1 |
Help Context |
acdlgHelpCommandTopic |
2 |
Help Topic |
acdlgHelpCommandWhatsThis |
3 |
WhatsThisHelp |
The HelpCommand acdlHelpCommandTopic will be treated the same as acdlgHelpCommandContext for Help files created with WinHelp (.HLP).
The following statement displays the help topic identified by HelpContextId:
cdlg1.HelpFile="MyHelp.hlp"
cdlg1.HelpCommand=acdlgHelpCommandContext
cdlg1.HelpContextId=0x12345
cdlg1.ShowHelp
HelpContextId, HelpFile, HelpTopic, ShowHelp, WhatsThisHelpId