---
id: "T:cAlgo.API.MessageBoxImage"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Windows/MessageBoxImage/"
---

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

# MessageBoxImage (enum)

This Enum contains MessageBox image icons

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum MessageBoxImage
```

## Examples

C#:

```csharp
MessageBox.Show("Connection to the trading server was restored", "Information", MessageBoxButton.OK, MessageBoxImage.Information);
```

Python:

```python
MessageBox.Show("Connection to the trading server was restored", "Information", MessageBoxButton.OK, MessageBoxImage.Information)
```

## Values

- `MessageBoxImage.None` — The default value, MessageBox without any icon
- `MessageBoxImage.Error` — Shows an error icon on MessageBox
- `MessageBoxImage.Question` — Shows a question icon on MessageBox
- `MessageBoxImage.Warning` — Shows a warning icon on MessageBox
- `MessageBoxImage.Information` — Shows an information icon on MessageBox

