AdvancedSaveFileDialog Class

Note: This API is now obsolete.
A Windows save file dialog that can host a custom control and can raise events.

Definition

Namespace: KGySoft.WinForms.Components
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
[ObsoleteAttribute("This class does not support the modern Explorer-like dialog that is available since Windows Vista.")]
public sealed class AdvancedSaveFileDialog : IDisposable
Inheritance
Object    AdvancedSaveFileDialog
Implements
IDisposable

Constructors

AdvancedSaveFileDialog Creates a new instance of AdvancedSaveFileDialog.

Properties

CustomControl A custom control that will be placed under the file type combo. It must be allocated and disposed by the caller, AdvancedSaveFileDialog adjusts only its size if CustomControlAutoSize is .
CustomControlAutoSize Gets or sets whether CustomControl should be resized when the file dialog is resized.
Default value: .
CustomControlLabel Gets or sets label of the custom control.
DefaultExt Gets or sets default extension. The dialog appends this extension to the file name if the user fails to type an extension. The string should not contain a period (.). If this member is and the user fails to type an extension, no extension is appended.
FileName Gets or sets the selected file name
Filter Gets or sets file types filter.
Example: C# files|*.cs|All files|*.*
FilterIndex Gets or sets the index of the Filter currently selected in the file dialog box as a one-based index.
Default value: 1.
ForceShowHiddenFiles Gets or sets whether to show system and hidden files, thus overriding the user setting to show or not to show hidden files. However, a file that is marked both system and hidden is not shown.
Default value: .
InitialDirectory Gets or sets the initial directory.
PathMustExist Gets or sets whether the path of the given file must exist.
Default value: .
PromptOverwrite Gets or sets whether the Save As dialog box displays a message box if the selected file already exists. The user must confirm whether to overwrite the file.
Default value: .
Title Gets or sets the title of the dialog

Methods

Dispose Releases all resources used by the current instance of the class.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Overrides ObjectFinalize)
ShowDialog Shows the file dialog

Events

FileTypeChanged Occurs when the user selects another value in file type combo box.
SelectedFileChanged Occurs when the user selects a file in the browser.

See Also