# TextControl.BorderStyleChanged Event

> Occurs when the value of the BorderStyle property has changed. The event handler receives an argument of type EventArgs containing data related to this event.

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

---

### Description

Occurs when the value of the BorderStyle property has changed. The event handler receives an argument of type EventArgs containing data related to this event.

### Syntax

```csharp
public event EventHandler BorderStyleChanged;
```

```vbnet
Public Event BorderStyleChanged As EventHandler
```

### Examples

The following example records useful context when border style changed occurs.

```csharp
textControl.BorderStyleChanged += (sender, e) =>
{
    Console.WriteLine($"Border Style Changed at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.BorderStyleChanged,
    Sub(sender, e)
        Console.WriteLine($"Border Style Changed at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TextControl.BorderStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/borderstyle-property/llms-full.txt)
- **Next:** [TextControl.ButtonBar Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/buttonbar-property/llms-full.txt)
