# Editor.Widget.SetModal

```csharp
void SetModal(bool on, bool application = False)
```

Set this window to be modal. This means it will appear on top of everything and block input to everything else.

### Parameters

- `on` (`bool`)
- `application` (`bool`), default `False`

Declared in [Editor.Widget](/api/Editor.Widget).
Assembly: `Sandbox.Tools`.
