Gets or sets a value indicating whether the Save As dialog box displays a warning if the user specifies a file name that already exists.
[Visual Basic] Public Property OverwritePrompt As Boolean [C#] public bool OverwritePrompt {get; set;} [C++] public: __property bool get_OverwritePrompt(); public: __property void set_OverwritePrompt(bool); [JScript] public function get OverwritePrompt() : Boolean; public function set OverwritePrompt(Boolean);
true if the dialog box prompts the user before overwriting an existing file if the user specifies a file name that already exists; false if the dialog box automatically overwrites the existing file without prompting the user for permission. The default value is true.
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