# FormClosingEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [FormClosing](https://docs.wisej.com/api/wisej.web/containers/form/..#formclosing) event.

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

```csharp
public class FormClosingEventArgs : CancelEventArgs
```

{% endtab %}

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

```visual-basic
Public Class FormClosingEventArgs
    Inherits CancelEventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FormClosingEventArgs(closeReason, cancel)

Initializes a new instance of the [FormClosingEventArgs](https://docs.wisej.com/api/wisej.web/containers/form/wisej.web.formclosingeventargs) class.

| Name            | Type                                                                                      | Description                                                                                                                                                |
| --------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **closeReason** | [CloseReason](https://docs.wisej.com/api/wisej.web/containers/form/wisej.web.closereason) | A [CloseReason](https://docs.wisej.com/api/wisej.web/containers/form/wisej.web.closereason) value that represents the reason why the form is being closed. |
| **cancel**      | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                           | true to cancel the event; otherwise, false.                                                                                                                |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CloseReason

[CloseReason](https://docs.wisej.com/api/wisej.web/containers/form/wisej.web.closereason): Returns a value that indicates why the form is being closed.

## Used By

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