Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist.
[Visual Basic] Overridable Public Property CheckFileExists As Boolean [C#] public bool CheckFileExists {virtual get; virtual set;} [C++] public: __property virtual bool get_CheckFileExists(); public: __property virtual void set_CheckFileExists(bool); [JScript] public function get CheckFileExists() : Boolean; public function set CheckFileExists(Boolean);
true if the dialog box displays a warning if the user specifies a file name that does not exist; otherwise, false. The default value is false.
The default value is true for an inheriting OpenFileDialog and false for an inheriting SaveFileDialog.
FileDialog Class | FileDialog Members | System.WinForms Namespace | CheckPathExists | PromptFileNotFound