Gets or sets a value indicating whether the dialog box prompts the user for permission to create a file if the user specifies a file that does not exist.
[Visual Basic] Public Property CreatePrompt As Boolean [C#] public bool CreatePrompt {get; set;} [C++] public: __property bool get_CreatePrompt(); public: __property void set_CreatePrompt(bool); [JScript] public function get CreatePrompt() : Boolean; public function set CreatePrompt(Boolean);
true if the dialog box prompts the user before creating a file if the user specifies a file name that does not exist; false if the dialog box automatically creates the new file without prompting the user for permission. The default value is false.
NGWS Runtime Security:
UIPermission | You must have the System.security.Permissions.UIPermission for all windows to set this property. |
SaveFileDialog Class | SaveFileDialog Members | System.WinForms Namespace