This documentation is archived and is not being maintained.

FileDialog.CheckFileExists Property

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]
Public Overridable Property CheckFileExists As Boolean
[C#]
public virtual bool CheckFileExists {get; 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);

Property Value

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.

Remarks

The default value is true for an inheriting OpenFileDialog and false for an inheriting SaveFileDialog.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

FileDialog Class | FileDialog Members | System.Windows.Forms Namespace | CheckPathExists

Show: