NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileDialog.ValidateNames

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);

Property Value

true if the dialog box accepts only valid Win32 file names; otherwise, false. The default value is true.

Remarks

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.

Requirements

NGWS Runtime Security:

UIPermission You must have the UIPermission for all windows to set this property.

See Also

FileDialog Class | FileDialog Members | System.WinForms Namespace