HelpCommand Property (ACommonDialog)

Returns or sets the type of online Help requested.

Syntax

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.

Where

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

Comments

The HelpCommand acdlHelpCommandTopic will be treated the same as acdlgHelpCommandContext for Help files created with WinHelp (.HLP).

Example

The following statement displays the help topic identified by HelpContextId:

cdlg1.HelpFile="MyHelp.hlp"

cdlg1.HelpCommand=acdlgHelpCommandContext

cdlg1.HelpContextId=0x12345

cdlg1.ShowHelp

Applies to

ACommonDialog

See Also

HelpContextId, HelpFile, HelpTopic, ShowHelp, WhatsThisHelpId