System.Windows.Forms.FileDialog.ValidateNames Property

Gets or sets a value indicating whether the dialog box accepts only valid Win32 file names.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool ValidateNames { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the edit control contains anything but spaces when the user clicks OK, the dialog box returns the file name, whether it is valid or not. No default extension is added to the text.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0