DialogTitle Property (ACommonDialog)

Returns or sets the string displayed in the title bar of the dialog box.

Syntax

Object.DialogTitle [ = sDialogTitle ]

The DialogTitle property syntax has the following parts:

 

Name

Type

Description

Object

ACommonDialog

ACommonDialog control

sDialogTitle

BString

The string displayed in the title bar of the dialog box.

Comments

The default title for an Open dialog box is Open; the default title for a Save As dialog box is Save As.

Note: The ACommonDialog control ignores the setting of the DialogTitle property when displaying the Color, Font, or Print dialog boxes.

Example

The following example will set the title bar text of the dialog box:

cdlg1.DialogTitle="Save Your Project As"

Applies to

ACommonDialog

See Also

DefaultExt, FileName, FileTitle, InitialDir, SaveAsOptions, ShowSaveAs