FileDialogOptionsBase.InitialDirectory Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or initializes the initial directory the dialog should have open. This should be an absolute path. If this is an empty string, the initial directory will default to the last opened directory, but if this is the first time, it is the root folder. If this is set, we pass in a flag to the dialog to open to the specified directory instead of the last opened directory. If an invalid directory is passed, we use the default.
public string InitialDirectory { get; init; }
member this.InitialDirectory : string with get, set
Public Property InitialDirectory As String