---
id: "M:cAlgo.API.OpenFileDialog.Reset"
kind: "method"
type: "T:cAlgo.API.OpenFileDialog"
url: "https://help.ctrader.com/ctrader-algo/references/Dialogs/OpenFileDialog/Reset/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# OpenFileDialog.Reset

Member of [OpenFileDialog](https://help.ctrader.com/ctrader-algo/references/Dialogs/OpenFileDialog/index.md).

## Reset()

Resets all dialog properties to their default values.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: No dialog can be shown in the CLI: ShowDialog returns FileDialogResult.None and the dialog settings are only stored.
- Cloud: No dialog can be shown in the cloud: ShowDialog returns FileDialogResult.None and the dialog settings are only stored.

C#:

```csharp
public void Reset()
```

Python:

```python
openFileDialog.Reset() -> None
```

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var openFileDialog = new OpenFileDialog { Title = "Import", Multiselect = true };
openFileDialog.ShowDialog();
openFileDialog.Reset();
Print("Multiselect after reset: {0}", openFileDialog.Multiselect);
```

Python:

```python
openFileDialog = OpenFileDialog()
openFileDialog.Title = "Import"
openFileDialog.Multiselect = True
openFileDialog.ShowDialog()
openFileDialog.Reset()
api.Print(f"Multiselect after reset: {openFileDialog.Multiselect}")
```

