Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.InitialFolder Property

Defines the initially selected file/folder using a path name.

Syntax

Get

VB.NETFolderName = object.InitialFolder As String
VBFolderName = object.InitialFolder As String
C#.NETstring FolderName = object.InitialFolder;
VC++_bstr_t FolderName = object->InitialFolder;
_bstr_t FolderName = object->GetInitialFolder();
CHRESULT object->get_InitialFolder(BSTR* FolderName);

Put

VB.NETobject.InitialFolder = FolderName As String
VBobject.InitialFolder = FolderName As String
C#.NETstring object.InitialFolder = FolderName;
VC++_bstr_t object->InitialFolder = FolderName;
void object->PutInitialFolder(_bstr_t FolderName);
CHRESULT object->put_InitialFolder(BSTR FolderName);

object

A SftDirectory object.

FolderName

Defines the initially selected file/folder using a path name.

Comments

The InitialFolder property defines the initially selected file/folder using a path name.

The InitialFolder property can be used to select a specific file/folder. In a TreeView style control (see ControlStyle property) the folder's parent folders are automatically expanded, while collapsing all unnecessary folders.

The full pathname must be specified for FolderName, including a file extension for files (even if the file extension is not normally displayed). Particularly for links, the file extension ".lnk" must be appended.

The InitialFolderSpecial property can be used to select a file/folder using its system-independent CSIDL.

See Also SftDirectory Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.