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

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

# RobotStartDialog.ShowDialog

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

## ShowDialog()

Shows the dialog.

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

- CLI: No dialog is shown. Returns normally, no exception.
- Cloud: No dialog is shown. Returns normally, no exception.

C#:

```csharp
public void ShowDialog()
```

Python:

```python
robotStartDialog.ShowDialog() -> None
```

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var startButton = new Button { Text = "Start Sample Breakout" };
startButton.Click += args =>
{
    if (AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot) is RobotType robotType)
        new RobotStartDialog(robotType).ShowDialog();
};
Chart.AddControl(startButton);
```

Python:

```python
algoType = api.AlgoRegistry.Get("Sample Breakout", AlgoKind.Robot)
if algoType is not None:
    RobotStartDialog(RobotType(algoType)).ShowDialog()
```

