Returns or sets the initial file directory.
Object.InitialDir [ = sInitialDir ]
The InitialDir property syntax has the following parts:
Name |
Type |
Description |
Object |
ACommonDialog |
ACommonDialog control |
sInitialDir |
BString |
The initial file directory. |
This property is used to specify the initial directory for an Open or Save As dialog. If this property is not specified, the current directory is used.
The following example will set the initial file directory:
cdlg1.InitialDir="c:\\tests\\"