# PaintEventHandler

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Represents the method that will handle the [Paint](https://docs.wisej.com/api/wisej.web/general/control/..#paint) event of a [Control](https://docs.wisej.com/api/wisej.web/general/control).

{% tabs %}
{% tab title="C#" %}

```csharp
public delegate void PaintEventHandler(Object sender, PaintEventArgs e)
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Delegate Sub PaintEventHandler(ByVal sender As [Object], ByVal e As PaintEventArgs)
```

{% endtab %}
{% endtabs %}

## Parameters

| Name       | Type                                                                                            | Description                                                                                                                     |
| ---------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **sender** | [Object](https://docs.microsoft.com/dotnet/api/system.object)                                   | The source of the event.                                                                                                        |
| **e**      | [PaintEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.painteventargs) | A [PaintEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.painteventargs) that contains the event data. |

## Fired By

| Name                                                                           | Description                                            |
| ------------------------------------------------------------------------------ | ------------------------------------------------------ |
| [Control.Paint](https://docs.wisej.com/api/wisej.web/general/control/..#paint) | Fired when a UserPaint control needs to redraw itself. |
