Click or drag to resize

VistaFolderBrowserDialog Class

Prompts the user to select a folder.
Inheritance Hierarchy

Namespace:  Ookii.Dialogs
Assembly:  Ookii.Dialogs (in Ookii.Dialogs.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public sealed class VistaFolderBrowserDialog : CommonDialog

The VistaFolderBrowserDialog type exposes the following members.

Constructors
  NameDescription
Public methodVistaFolderBrowserDialog
Creates a new instance of the VistaFolderBrowserDialog class.
Top
Properties
  NameDescription
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public propertyDescription
Gets or sets the descriptive text displayed above the tree view control in the dialog box, or below the list view control in the Vista style dialog.
Public propertyStatic memberIsVistaFolderDialogSupported
Gets a value that indicates whether the current OS supports Vista-style common file dialogs.
Public propertyRootFolder
Gets or sets the root folder where the browsing starts from. This property has no effect if the Vista style dialog is used.
Public propertySelectedPath
Gets or sets the path selected by the user.
Public propertyShowNewFolderButton
Gets or sets a value indicating whether the New Folder button appears in the folder browser dialog box. This property has no effect if the Vista style dialog is used; in that case, the New Folder button is always shown.
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public propertyTag
Gets or sets an object that contains data about the control.
(Inherited from CommonDialog.)
Public propertyUseDescriptionForTitle
Gets or sets a value that indicates whether to use the value of the Description property as the dialog title for Vista style dialogs. This property has no effect on old style dialogs.
Top
Methods
  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodReset
Resets all properties to their default values.
(Overrides CommonDialogReset.)
Public methodShowDialog
Runs a common dialog box with a default owner.
(Inherited from CommonDialog.)
Public methodShowDialog(IWin32Window)
Runs a common dialog box with the specified owner.
(Inherited from CommonDialog.)
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Top
Events
  NameDescription
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component.)
Public eventHelpRequest
Occurs when the user clicks the Help button on a common dialog box.
(Inherited from CommonDialog.)
Top
Remarks
This class will use the Vista style Select Folder dialog if possible, or the regular FolderBrowserDialog if it is not. Note that the Vista style dialog is very different, so using this class without testing in both Vista and older Windows versions is not recommended.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also