# TextControl.BarcodeRightClicked Event

> Occurs when a barcode has been clicked on with the right mouse button. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 19.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.BarcodeRightClicked Event
- **330 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcoderightclicked-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcoderightclicked-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcoderightclicked-event/llms-full.txt

---

### Description

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

### Syntax

```csharp
public event BarcodeEventHandler BarcodeRightClicked;
```

```vbnet
Public Event BarcodeRightClicked As BarcodeEventHandler
```

### Examples

The following example records useful context when barcode right clicked occurs.

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

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

---

## Nearby

- **Previous:** [TextControl.BarcodeMoved Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcodemoved-event/llms-full.txt)
- **Next:** [TextControl.Barcodes Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcodes-property/llms-full.txt)
