# TextControl.OnHypertextLinkClicked Method

> Raises the HypertextLinkClicked event.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **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.OnHypertextLinkClicked Method
- **528 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onhypertextlinkclicked-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onhypertextlinkclicked-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onhypertextlinkclicked-method/llms-full.txt

---

### Description

Raises the HypertextLinkClicked event.

### Syntax

```csharp
protected virtual void OnHypertextLinkClicked(HypertextLinkEventArgs e);
```

```vbnet
Protected Overridable Sub OnHypertextLinkClicked(e As HypertextLinkEventArgs)
```

### Parameters

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

### Examples

The following example extends Text Control and performs custom processing when On Hypertext Link Clicked is invoked.

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

```vbnet
Class CustomTextControl
    Inherits TextControl

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

### See Also

Text Fields and Hypertext Links - Hypertext Links.

---

## Nearby

- **Previous:** [TextControl.OnHShrunk Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onhshrunk-method/llms-full.txt)
- **Next:** [TextControl.OnHyphenateWord Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/onhyphenateword-method/llms-full.txt)
