# FormClosingEventHandler

Namespace: **Wisej.Web**

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

Represents the method that handles a [FormClosing](https://docs.wisej.com/api/wisej.web/containers/form/..#formclosing) event.

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

```csharp
public delegate void FormClosingEventHandler(Object sender, FormClosingEventArgs e)
```

{% endtab %}

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

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

{% endtab %}
{% endtabs %}

## Parameters

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

## Fired By

| Name                                                                                    | Description                       |
| --------------------------------------------------------------------------------------- | --------------------------------- |
| [Form.FormClosing](https://docs.wisej.com/api/wisej.web/containers/form/..#formclosing) | Occurs before the form is closed. |
