# TextControl.OnSignatureFieldSelected Method

> Raises the SignatureFieldSelected event.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 31.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.OnSignatureFieldSelected Method
- **522 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onsignaturefieldselected-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onsignaturefieldselected-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onsignaturefieldselected-method/llms-full.txt

---

### Description

Raises the SignatureFieldSelected event.

### Syntax

```csharp
protected virtual void OnSignatureFieldSelected(SignatureFieldEventArgs e);
```

```vbnet
Protected Overridable Sub OnSignatureFieldSelected(e As SignatureFieldEventArgs)
```

### Parameters

| Parameter | Description |
|---|---|
| e | Specifies an [SignatureFieldEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/signaturefieldeventargs/llms-full.txt) object that contains the event data. |

### Examples

The following example extends Text Control and performs custom processing when On Signature Field Selected is invoked.

```csharp
class CustomTextControl : TextControl
{
    protected override void OnSignatureFieldSelected(SignatureFieldEventArgs e)
    {
        // Add custom processing before registered event handlers run.
        base.OnSignatureFieldSelected(e);
    }
}
```

```vbnet
Class CustomTextControl
    Inherits TextControl

    Protected Overrides Sub OnSignatureFieldSelected(e As SignatureFieldEventArgs)
        ' Add custom processing before registered event handlers run.
        MyBase.OnSignatureFieldSelected(e)
    End Sub
End Class
```

---

## Nearby

- **Previous:** [TextControl.OnSignatureFieldDeselected Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onsignaturefielddeselected-method/llms-full.txt)
- **Next:** [TextControl.OnSpellCheckText Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onspellchecktext-method/llms-full.txt)
