windowsforms-devexpress-dot-xtraeditors-dot-xtrasavefiledialog-c7290884.md
Gets or sets whether or not this XtraSaveFileDialog should warn users when they try to save a file under an already existing name.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraDialogs.v25.2.dll
NuGet Packages : DevExpress.Win.Dialogs, DevExpress.Win.Navigation
[DefaultValue(true)]
[DXCategory("Behavior")]
public bool OverwritePrompt { get; set; }
<DefaultValue(True)>
<DXCategory("Behavior")>
Public Property OverwritePrompt As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to display a warning, false to overwrite old files without confirmation.
|
Refer to the following help topic for more information: OverwritePrompt.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the OverwritePrompt property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richedit-save-a-document/CS/SaveDocument/CustomCommand.cs#L47
dialog.CheckPathExists = true;
dialog.OverwritePrompt = true;
dialog.DereferenceLinks = true;
See Also