FileDialog.CheckFileExists Property


Gets or sets a value indicating whether a file dialog displays a warning if the user specifies a file name that does not exist.

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

Public Overridable Property CheckFileExists As Boolean

Property Value

Type: System.Boolean

true if warnings are displayed; otherwise, false. The default in this base class is false.

The OpenFileDialog class sets this property to true in its constructor.


to reset the dialog user interface. Associated enumeration: Unrestricted

.NET Framework
Available since 3.0
Return to top