ShowHelp Method (ACommonDialog)

Displays the specified help file and help topic.

Syntax

[ enRetVal = ] Object.ShowHelp()

The ShowHelp method syntax has the following parts:

 

Name

Type

Description

Object

An Object

An object

enRetVal

Val enumACommonDialogRetVal

An integer specifying the status of the dialog box.

Where

enumACommonDialogRetVal can be one of the following:

 

Name

Value

Description

acdlgRetValOk

0x00000000

OK

acdlgRetValCancel

0x00000001

Cancel

acdlgRetValError

0x00000002

Error

Comments

After initializing the dialog box’s properties, call the ShowHelp method to display the help contents or topic.

Example

The following example will display the specified help file and help topic:

cdlg.HelpFile="c:\\MyHelpFile.chm"

cdlg.HelpContextId=0x1234

cdlg.HelpCommand=acdlgHelpCommandContext

cdlg1.ShowHelp()

Applies to

ACommonDialog

See Also

HelpCommand, HelpContextId, HelpFile, HelpTopic