Share via


Visual Basic: CommonDialog Control

InitDir Property

See Also   Example   Applies To

Returns or sets the initial file directory.

Syntax

object**.InitDir** [= string]

The InitDir property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
string A string expression specifying the initial file directory.

Remarks

This property is used to specify the initial directory for an Open or Save As dialog. If this property isn't specified, the current directory is used.

Data Type

String