---
id: "E:cAlgo.API.CheckBox.Unchecked"
kind: "event"
type: "T:cAlgo.API.CheckBox"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/CheckBox/Unchecked/"
---

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

# CheckBox.Unchecked

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

## Unchecked

Occurs when unchecked.

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

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public event Action<CheckBoxEventArgs> Unchecked;
```

Python:

```python
checkBox.Unchecked += handler  # handler(obj: CheckBoxEventArgs)
```

### Returns

`Action<CheckBoxEventArgs>` — 

### Examples

C#:

```csharp
var checkBox = new CheckBox { Text = "Trailing stop", IsChecked = true };
checkBox.Unchecked += args => Print("Trailing stop disabled");
Chart.AddControl(checkBox);
```

Python:

```python
def on_start(self):
    checkBox = CheckBox()
    checkBox.Text = "Trailing stop"
    checkBox.IsChecked = True
    checkBox.Unchecked += self.on_check_box_unchecked
    api.Chart.AddControl(checkBox)

def on_check_box_unchecked(self, args):
    api.Print("Trailing stop disabled")
```

