---
id: "M:cAlgo.API.Window.Hide"
kind: "method"
type: "T:cAlgo.API.Window"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Windows/Window/Hide/"
---

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

# Window.Hide

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

## Hide()

Hides the window

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

- CLI: Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.
- Cloud: Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

C#:

```csharp
public void Hide()
```

Python:

```python
window.Hide() -> None
```

### Examples

C#:

```csharp
var window = new Window { Title = "Temporary", Width = 250, Height = 120 };
var hideButton = new Button { Text = "Hide" };
hideButton.Click += args => window.Hide();
window.Child = hideButton;
window.Show();
```

Python:

```python
window = Window()
window.Title = "Temporary"
window.Width = 250
window.Height = 120
hideButton = Button()
hideButton.Text = "Hide"
hideButton.Click += lambda args: window.Hide()
window.Child = hideButton
window.Show()
```

