|
|
Total Access Components Tour: Browse for Folder Control
The browse for folder control allows you to display a browse for folder
dialog, and specify whether your users can select a folder, a computer, a
printer, or a file.
There are four basic steps involved in using the Browse for Folder
control:
- Insert the control into your form. Use the Insert|ActiveX Control
menu to place the control anywhere on your form.
- Set the appropriate properties. Define the behavior and appearance
of the dialog by setting the custom control's properties, either through
the properties sheet or programmatically through VBA code. Refer to the
property list below for information about customizing the dialog.
- Call the dialog. Use the Show method to display the browse for
folder dialog.
- Get the Return Information. When the user selects a path from the
dialog, the Browse for Folder control sets the Value property to the
path that was selected.

Browse for Folder Properties
|
Name |
Description |
|
BrowseForComputer |
True to limit selection to a computer, or false to allow
folder/file selection as well. |
|
BrowseForPrinter |
True to limit selection to a printer, or false to allow
folder/file selection. |
|
BrowseIncludeFiles |
True to allow file selection, or false to limit selection to the
directory level. |
|
DontGoBelowDomain |
True to disallow selecting a network computer. |
|
EditBox |
True to display a field for typing a path, or false to force the
user to use the treeview. |
|
ReturnFSAncestors |
True to limit selection to file system ancestors. (An ancestor is
a subfolder that is beneath the root folder.) |
|
ReturnOnlyFSDirs |
True to limit selection to file system directories. |
|
Title |
The string displayed in the dialog box. |
|
Validate |
True to validate the path that the user selects. |
|
Value |
The selected path. |
|