# Reset
{: .no_toc }

Restores every property of the **cDialog** to the value it had when the object was created.

Syntax: *object*.**Reset**

*object*
: *required* An object expression that evaluates to a **cDialog**.

## Remarks

**Reset** empties [**DialogTitle**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/DialogTitle.md), [**InitialDir**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/InitialDir.md), [**DefaultExt**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/DefaultExt.md), [**FileName**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/FileName.md) and [**Filter**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/Filter.md), sets [**MultiSelect**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/MultiSelect.md), [**ReadOnly**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/ReadOnly.md), [**NoChangeDir**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/NoChangeDir.md) and [**CreatePrompt**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/CreatePrompt.md) to **False**, and sets [**OverwritePrompt**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/OverwritePrompt.md), [**PathMustExist**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/PathMustExist.md), [**FileMustExist**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/FileMustExist.md), [**HideReadOnly**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/HideReadOnly.md) and [**NewDialogStyle**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/NewDialogStyle.md) to **True**. These are the starting values listed on the page of the [class](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/index.md#defaults).

A confirmed [**ShowOpen**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/ShowOpen.md) or [**ShowSave**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/ShowSave.md) leaves its path in **FileName**, and a confirmed [**ShowBrowseForFolder**](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/ShowBrowseForFolder.md) leaves the folder in **InitialDir**. **Reset** clears both, along with the other properties.

## Example

```tb check_build check_run
Dim dlg As New cDialog
dlg.DialogTitle = "Pick a file"
dlg.AddFilter "All Files (*.*)", "*.*"
dlg.MultiSelect = True
dlg.OverwritePrompt = False

dlg.Reset
Debug.Print "[" & dlg.DialogTitle & "]"   ' []
Debug.Print Len(dlg.Filter)               ' 0
Debug.Print dlg.MultiSelect               ' False
Debug.Print dlg.OverwritePrompt           ' True
```

## See Also

- [cDialog](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/index.md) class -- overview, with the starting values
- [FileName](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/FileName.md) property -- set by a confirmed Open or Save As dialog
- [InitialDir](/tB/Packages/Contributed/TBMANLIB_Dialog/cDialog/InitialDir.md) property -- set by a confirmed Browse For Folder dialog
