FileDialog.InitialDirectory Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the initial directory that is displayed by a file dialog.

Namespace:   Microsoft.Win32
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Property InitialDirectory As String

Property Value

Type: System.String

A String that contains the initial directory. The default is Empty.

If there is no initial directory set, this property will contain Empty rather than a null string.


to set the initial directory value. Associated enumeration: Unrestricted

.NET Framework
Available since 3.0
Return to top