# UIThreadAccessException class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[Serializable]
public class UIThreadAccessException : Exception
```

Exception thrown when a control method is accessed in a non-UI thread using [Application.EnsureUIThread()](https://eto.picoe.ca/api/type/eto.forms.application/ensureuithread.md).

## Constructors

- [UIThreadAccessException](https://eto.picoe.ca/api/type/eto.forms.uithreadaccessexception/ctor.md): (4 overloads) Initializes a new instance of the UIThreadAccessException class
