---
title: "Windows Desktop SDK: Widget control"
description: "Open and close the Gleap widget programmatically with the Gleap Windows Desktop SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/631-windows-desktop-sdk-widget-control
collection: "Windows Desktop (Beta)"
updated: 2026-11-01
language: en
---

# Windows Desktop SDK: Widget control

Open and close the Gleap widget programmatically with the Gleap Windows Desktop SDK. Follow the integration code examples.

In some situations you might want to take full control over showing the Gleap widget. This can be achieved with the following methods.

### Open the Gleap widget

```csharp
Gleap.Open();
```

This method opens the Gleap widget and shows the feedback menu options.

### Close the Gleap widget

```csharp
Gleap.Close();
```

This method closes the Gleap widget.

### Widget open status

It's possible to request the widget open status with the following method.

```csharp
Gleap.IsOpened();
```

## Related

- [Windows Desktop SDK setup](https://docs.gleap.ai/en/articles/616-windows-desktop-sdk-setup.md)
- [Windows Desktop SDK: User identity](https://docs.gleap.ai/en/articles/617-windows-desktop-sdk-user-identity.md)
- [Windows Desktop SDK: Track events](https://docs.gleap.ai/en/articles/618-windows-desktop-sdk-track-events.md)
- [Windows Desktop SDK: Track pages](https://docs.gleap.ai/en/articles/619-windows-desktop-sdk-track-pages.md)
- [Windows Desktop SDK: Forms](https://docs.gleap.ai/en/articles/620-windows-desktop-sdk-forms.md)
