Gets or sets a value indicating whether the dialog box accepts only valid Win32 file names.
[Visual Basic] Public Property ValidateNames As Boolean [C#] public bool ValidateNames {get; set;} [C++] public: __property bool get_ValidateNames(); public: __property void set_ValidateNames(bool); [JScript] public function get ValidateNames() : Boolean; public function set ValidateNames(Boolean);
true if the dialog box accepts only valid Win32 file names; otherwise, false. The default value is true.
If the edit control contains anything but spaces when the user clicks OK, the dialog returns the file name, whether it is valid or not. No default extension is added to the text.
NGWS Runtime Security:
UIPermission | You must have the UIPermission for all windows to set this property. |
FileDialog Class | FileDialog Members | System.WinForms Namespace