This documentation is archived and is not being maintained.

Introduction to the Windows Forms SaveFileDialog Component

Visual Studio .NET 2003

The Windows Forms SaveFileDialog component is a pre-configured dialog box. It is the same as the standard Save File dialog box used by Windows. It inherits from the CommonDialog class.

Use it as a simple solution for enabling users to save files in lieu of configuring your own dialog box. By relying on standard Windows dialog boxes, the basic functionality of applications you create is immediately familiar to users. Be aware, however, that when using the SaveFileDialog component, you must write your own file-saving logic.

You can use the ShowDialog method to display the dialog box at run time. You can open a file in read-write mode using the OpenFile method.

When it is added to a form, the SaveFileDialog component appears in the tray at the bottom of the Windows Forms Designer.

See Also

SaveFileDialog Class | SaveFileDialog Component (Windows Forms)

Show: