Visual Basic: CommonDialog Control

Visual Studio 6.0

Action Property (CommonDialog)

See Also   Example   Applies To

Returns or sets the type of dialog box to be displayed. Not available at design time.

Note   The Action property is included for compatibility with earlier versions of Visual Basic. For additional functionality, use the following new methods: ShowColor, ShowFont, ShowHelp, ShowOpen, ShowPrinter, and ShowSave.

Syntax

object.Action [= value]

The Action property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A numeric expression specifying the type of dialog box displayed, as described in Settings.

Settings

The settings for value are:

Setting Description
0 No Action.
1 Displays Open dialog box.
2 Displays Save As dialog box.
3 Displays Color dialog box.
4 Displays Font dialog box.
5 Displays Printer dialog box.
6 Runs WINHLP32.EXE.

Data Type

Integer

Show: