# TextControl.BarcodeSized Event

> Occurs when a barcode has been sized. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.

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

---

### Description

Occurs when a barcode has been sized. The event handler receives an argument of type [BarcodeEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/barcodeeventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event BarcodeEventHandler BarcodeSized;
```

```vbnet
Public Event BarcodeSized As BarcodeEventHandler
```

### Examples

The following example records useful context when barcode sized occurs.

```csharp
textControl.BarcodeSized += (sender, e) =>
{
    Console.WriteLine($"Barcode Sized at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.BarcodeSized,
    Sub(sender, e)
        Console.WriteLine($"Barcode Sized at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TextControl.BarcodeSelected Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/barcodeselected-event/llms-full.txt)
- **Next:** [TextControl.Baseline Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/baseline-property/llms-full.txt)
